Skip to content

Commit

Permalink
squash: Drops unnecessary check.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Sep 5, 2024
1 parent 47ee211 commit 655f283
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions resources/prosody-plugins/mod_filter_iq_jibri.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 655f283

Please sign in to comment.