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

Merge branch 'stable-2.11' of edugit.org:AlekSIS/official/AlekSIS-Core into stable-2.11

parents 5fd4caef b8ac7b73
No related branches found
No related tags found
No related merge requests found
Pipeline #85969 canceled
......@@ -41,14 +41,8 @@ class MarkNotificationReadMutation(graphene.Mutation):
class Query(graphene.ObjectType):
ping = graphene.String(default_value="pong")
notifications = graphene.List(NotificationType)
who_am_i = graphene.Field(PersonType)
def resolve_notifications(root, info, **kwargs):
# FIXME do permission stuff
return Notification.objects.all()
def resolve_who_am_i(root, info, **kwargs):
if has_person(info.context.user):
return info.context.user.person
......
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