]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_verto] regression from fix for guest seeing non-public rooms
authorAnthony Minessale <anthm@signalwire.com>
Thu, 27 Aug 2020 01:41:40 +0000 (01:41 +0000)
committerAndrey Volk <andywolk@gmail.com>
Sat, 23 Oct 2021 19:01:01 +0000 (22:01 +0300)
src/mod/endpoints/mod_verto/mod_verto.c

index e5b46da344ed536f9de62bf11c3e64e1bb204ca8..7ff6b1e7993126aac0aea8bda2e32a1f5c0b4cb7 100644 (file)
@@ -681,8 +681,10 @@ static void write_event(const char *event_channel, jsock_t *use_jsock, cJSON *ev
                                        if (strcasecmp(visibility, "public") &&
                                                ((use_jsock && use_jsock->id && !strncasecmp(use_jsock->id, "guest", 5)) ||
                                                 (np->jsock->id && !strncasecmp(np->jsock->id, "guest", 5)))) {
-
-                                               continue;
+                                               
+                                               if (!switch_event_channel_permission_verify(np->jsock->uuid_str, event_channel)) {
+                                                       continue;
+                                               }
                                        }
                                }
                                //tmp = cJSON_Print(event);