mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
fix(mod_jitsi_permissions): Use correct session on moderator revocation
In the `process_set_affiliation` function, an undefined `session` variable was used when revoking moderator privileges. This prevented the `jitsi_meet_context_features` from being cleared for the occupant.
This commit is contained in:
committed by
Дамян Минков
parent
421b21edeb
commit
80b3f1d7d4
@@ -85,7 +85,7 @@ function process_set_affiliation(event)
|
||||
occupant_session.granted_jitsi_meet_context_group_id = nil;
|
||||
|
||||
-- on revoke
|
||||
if not session.auth_token then
|
||||
if not occupant_session.auth_token then
|
||||
occupant_session.jitsi_meet_context_features = nil;
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user