mirror of
https://github.com/simple-login/app.git
synced 2024-09-28 04:41:28 +02:00
feat: disable whitelist events (#2230)
This commit is contained in:
parent
df4c52815b
commit
4762dffd96
@ -64,10 +64,6 @@ class EventDispatcher:
|
|||||||
)
|
)
|
||||||
return
|
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)
|
partner_user = EventDispatcher.__partner_user(user.id)
|
||||||
if not partner_user:
|
if not partner_user:
|
||||||
LOG.i(f"Not sending events because there's no partner user for user {user}")
|
LOG.i(f"Not sending events because there's no partner user for user {user}")
|
||||||
|
Loading…
Reference in New Issue
Block a user