feat: disable whitelist events (#2230)

This commit is contained in:
Carlos Quintana 2024-09-27 15:55:25 +02:00 committed by GitHub
parent df4c52815b
commit 4762dffd96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,10 +64,6 @@ class EventDispatcher:
)
return
if config.EVENT_WEBHOOK_ENABLED_USER_IDS is not None:
if user.id not in config.EVENT_WEBHOOK_ENABLED_USER_IDS:
return
partner_user = EventDispatcher.__partner_user(user.id)
if not partner_user:
LOG.i(f"Not sending events because there's no partner user for user {user}")