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:
Werner Fleischer
2025-11-10 09:25:30 +01:00
committed by Дамян Минков
parent 421b21edeb
commit 80b3f1d7d4

View File

@@ -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