Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(moderated): Fixes moderators in moderated rooms without tenant.

damencho84c1e20216c5
diff --git a/resources/prosody-plugins/mod_muc_allowners.lua b/resources/prosody-plugins/mod_muc_allowners.lua
index a277300f7c..cde35d0452 100644
--- a/resources/prosody-plugins/mod_muc_allowners.lua
+++ b/resources/prosody-plugins/mod_muc_allowners.lua
@@ -50,9 +50,7 @@ module:hook("muc-occupant-pre-join", function (event)
return;
end
- -- FIX ME: luacheck warning 581
- -- not (x == y)' can be replaced by 'x ~= y' (if neither side is a table or NaN)
- if not (subdomain == session.jitsi_meet_domain) then
+ if session.jitsi_meet_domain ~= '*' and subdomain ~= session.jitsi_meet_domain then
module:log('debug', 'skip allowners for auth user and non matching room subdomain: %s, jwt subdomain: %s',
subdomain, session.jitsi_meet_domain);
return;