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

Only allow marking own notifications as read

parent 8c665f50
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,8 @@ class MarkNotificationReadMutation(graphene.Mutation):
@classmethod
def mutate(cls, root, info, id): # noqa
notification = Notification.objects.get(pk=id)
# FIXME permissions
notification = Notification.objects.get(pk=id, recipient=info.context.user.person)
notification.read = True
notification.save()
......
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