From 340e7afd06c97e23da41a21f5e437af631975bb9 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sun, 4 Feb 2018 18:53:56 +0100 Subject: [PATCH] Fix bug that lead to notifications being sent for all events --- src/pretix/base/services/notifications.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pretix/base/services/notifications.py b/src/pretix/base/services/notifications.py index 80c002af5..eaae8008e 100644 --- a/src/pretix/base/services/notifications.py +++ b/src/pretix/base/services/notifications.py @@ -39,6 +39,7 @@ def notify(logentry_id: int): notify_global = { (ns.user, ns.method): ns.enabled for ns in NotificationSetting.objects.filter( + event__isnull=True, action_type=logentry.action_type, user__pk__in=users.values_list('pk', flat=True) )