Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed system notifications #7070

Merged
merged 1 commit into from
Nov 5, 2022

Conversation

ksotik
Copy link
Contributor

@ksotik ksotik commented Nov 2, 2022

Before this fix django tried to get one row from database for system notifications settings, but there are two rows when user_id=None - system and template notifications settings. As a result there was used Notifications() instance with default settings (alert, alert) and system notifications settings was ignored.

Copy link
Contributor

@dsever dsever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes sense, I missed that during the template implementation

@mtesauro mtesauro merged commit e7255c3 into DefectDojo:dev Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants