Skip to content

Commit

Permalink
Make no_users default to False in more than one place
Browse files Browse the repository at this point in the history
  • Loading branch information
Maffooch committed Dec 17, 2024
1 parent 0479f26 commit 7c71bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo/notifications/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ def create_notification(self, event: str | None = None, **kwargs: dict) -> None:
logger.debug("creating personal notifications for event: %s", event)
# There are notification like deleting a product type that shall not be sent to users.
# These notifications will have the parameter no_users=True
if kwargs.get("no_users") is False:
if kwargs.get("no_users", False) is False:
# get users with either global notifications, or a product specific notification
# and all admin/superuser, they will always be notified
for user in self._get_user_to_send_notifications_to():
Expand Down

0 comments on commit 7c71bed

Please sign in to comment.