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

Merged
merged 10 commits into from
Jan 24, 2025
Merged

Refactor blacklist in webhooks #648

merged 10 commits into from
Jan 24, 2025

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?

@damencho damencho merged commit dd80614 into main Jan 24, 2025
@damencho damencho deleted the refactor-blacklist branch January 24, 2025 21:47
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