Skip to content
Snippets Groups Projects
Commit 5993b39e authored by permcu's avatar permcu
Browse files

Fix name of absence_reasons-resolve-method

This broke permission-checking.
parent 64cf62b3
1 merge request!74Resolve Unprotected Absence Reasons queries
......@@ -66,7 +66,7 @@ class Query(graphene.ObjectType):
)
@staticmethod
def resolve_absencereasons(root, info, **kwargs) -> QuerySet:
def resolve_absence_reasons(root, info, **kwargs) -> QuerySet:
if not info.context.user.has_perm("kolego.fetch_absencereasons_rule"):
return []
return graphene_django_optimizer.query(
......
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