Skip to content
Snippets Groups Projects
Commit 1aecd6db authored by Julian's avatar Julian
Browse files

Return None for schoolterms for anonymous users

parent de50bc37
No related branches found
No related tags found
1 merge request!1596Resolve "More extensible person and group detail page"
Pipeline #193334 failed
......@@ -266,7 +266,7 @@ class Query(graphene.ObjectType):
@staticmethod
def resolve_current_school_term(root, info, **kwargs):
if not has_person(info.context.user):
raise PermissionDenied
return None
return SchoolTerm.current
......
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