forked from CGM_Public/pretix_original
Fix bug that lead to notifications being sent for all events
This commit is contained in:
@@ -39,6 +39,7 @@ def notify(logentry_id: int):
|
|||||||
notify_global = {
|
notify_global = {
|
||||||
(ns.user, ns.method): ns.enabled
|
(ns.user, ns.method): ns.enabled
|
||||||
for ns in NotificationSetting.objects.filter(
|
for ns in NotificationSetting.objects.filter(
|
||||||
|
event__isnull=True,
|
||||||
action_type=logentry.action_type,
|
action_type=logentry.action_type,
|
||||||
user__pk__in=users.values_list('pk', flat=True)
|
user__pk__in=users.values_list('pk', flat=True)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user