From a2698bd8e010c1d95f83761624de2263d596d188 Mon Sep 17 00:00:00 2001 From: Ketan <73937490+devketanpro@users.noreply.github.com> Date: Fri, 16 Aug 2024 19:29:05 +0530 Subject: [PATCH] pass full notification name in get_user_prefrences func [SDESK-7366] (#2064) --- server/planning/planning_notifications.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/planning/planning_notifications.py b/server/planning/planning_notifications.py index 5a68d004e..a4c7173ef 100644 --- a/server/planning/planning_notifications.py +++ b/server/planning/planning_notifications.py @@ -127,7 +127,10 @@ def notify_assignment( self._notify_slack.apply_async(kwargs=args, serializer="eve/json") # No assignment notification sent, if user is not enabled assignment notification - if assigned_user and get_user_notification_preferences(assigned_user, "assignments")["email"] is False: + if ( + assigned_user + and get_user_notification_preferences(assigned_user, "email:notification:assignments")["email"] is False + ): return # send email notification to user