Skip to content

Commit

Permalink
fixup! Add filtering of incidents by a profile pk
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Feb 12, 2024
1 parent 382d565 commit 2f41d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/argus/incident/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def qs(self):
if notificationprofile_pk:
profile = NotificationProfile.objects.filter(pk=notificationprofile_pk).first()

if profile or profile.user != self.request.user:
if profile and profile.user != self.request.user:
return queryset.none()

return queryset
Expand Down

0 comments on commit 2f41d61

Please sign in to comment.