Skip to content
Snippets Groups Projects
Commit 4bfedfc4 authored by Julian's avatar Julian
Browse files

Ensure that notifications can be marked as read again

(person and user were mixed up)
parent 5979df32
Branches
No related tags found
No related merge requests found
......@@ -255,7 +255,7 @@ def notification_mark_read(request: HttpRequest, id_: int) -> HttpResponse:
notification = get_object_or_404(Notification, pk=id_)
if notification.user == request.user:
if notification.user == request.user.person:
notification.read = True
notification.save()
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment