Skip to content
Snippets Groups Projects
Verified Commit 1c5c1fbd authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix model access in notification_mark_read

parent e9f79d1a
No related branches found
No related tags found
1 merge request!137Generalise notifications and implement SMS notifications
Pipeline #718 failed
......@@ -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.recipient.user == request.user:
notification.read = True
notification.save()
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment