Skip to content

Commit

Permalink
pass full notification name in get_user_prefrences func [SDESK-7366] (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
devketanpro authored Aug 16, 2024
1 parent 57aec53 commit a2698bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/planning/planning_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2698bd

Please sign in to comment.