forked from CGM_Public/pretix_original
Do not send notifications to disabled users
This commit is contained in:
@@ -32,7 +32,7 @@ def notify(logentry_id: int):
|
|||||||
# All users that have the permission to get the notification
|
# All users that have the permission to get the notification
|
||||||
users = logentry.event.get_users_with_permission(
|
users = logentry.event.get_users_with_permission(
|
||||||
notification_type.required_permission
|
notification_type.required_permission
|
||||||
).filter(notifications_send=True)
|
).filter(notifications_send=True, is_active=True)
|
||||||
if logentry.user:
|
if logentry.user:
|
||||||
users = users.exclude(pk=logentry.user.pk)
|
users = users.exclude(pk=logentry.user.pk)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user