mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-06 05:01:34 +00:00
[mod_verto] regression from fix for guest seeing non-public rooms
This commit is contained in:
parent
838ca39135
commit
b32b58ec81
@ -681,8 +681,10 @@ static void write_event(const char *event_channel, jsock_t *use_jsock, cJSON *ev
|
|||||||
if (strcasecmp(visibility, "public") &&
|
if (strcasecmp(visibility, "public") &&
|
||||||
((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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user