Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor blacklist in webhooks #648

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Refactor blacklist in webhooks #648

wants to merge 10 commits into from

Conversation

damencho
Copy link
Member

@damencho damencho commented Dec 4, 2024

No description provided.

@@ -454,7 +455,11 @@ function handle_occupant_access(event, event_type)
return
end

if not util.is_blacklisted(occupant) and is_vpaas(main_room)
if not oss_util.starts_with_one_of(occupant.jid, TRANSCRIBER_PREFIXES)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous commit uses util_internal.is_jibri(occupant). Can it be used here, too, instead of checking the prefixes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants