[mod_verto] regression from fix for guest seeing non-public rooms

This commit is contained in:
Anthony Minessale 2020-08-27 01:41:40 +00:00 committed by Andrey Volk
parent 4e84b34d30
commit 6789eedd5b

View File

@ -682,7 +682,9 @@ static void write_event(const char *event_channel, jsock_t *use_jsock, cJSON *ev
((use_jsock && use_jsock->id && !strncasecmp(use_jsock->id, "guest", 5)) || ((use_jsock && use_jsock->id && !strncasecmp(use_jsock->id, "guest", 5)) ||
(np->jsock->id && !strncasecmp(np->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); //tmp = cJSON_Print(event);