diff --git a/resources/prosody-plugins/mod_filter_iq_jibri.lua b/resources/prosody-plugins/mod_filter_iq_jibri.lua index d8e93e5dbca..be3d82339de 100644 --- a/resources/prosody-plugins/mod_filter_iq_jibri.lua +++ b/resources/prosody-plugins/mod_filter_iq_jibri.lua @@ -24,13 +24,10 @@ module:hook("pre-iq/full", function(event) session.granted_jitsi_meet_context_features, occupant.role == 'moderator'); - if jibri.attr.action == 'start' then - if token == nil or not is_allowed then - module:log("info", - "Filtering jibri start recording, stanza:%s", tostring(stanza)); - session.send(st.error_reply(stanza, "auth", "forbidden")); - return true; - end + if jibri.attr.action == 'start' and not is_allowed then + module:log('info', 'Filtering jibri start recording, stanza:%s', tostring(stanza)); + session.send(st.error_reply(stanza, 'auth', 'forbidden')); + return true; end end end