diff --git a/grievance_social_protection/schema.py b/grievance_social_protection/schema.py index 961ca97..544636c 100644 --- a/grievance_social_protection/schema.py +++ b/grievance_social_protection/schema.py @@ -117,7 +117,7 @@ def resolve_grievance_config(self, info, **kwargs): user = info.context.user if type(user) is AnonymousUser: raise PermissionDenied(_("unauthorized")) - if not user.is_imis_admin: + if not info.context.user.has_perms(TicketConfig.gql_query_tickets_perms): raise PermissionDenied(_("unauthorized")) return GrievanceTypeConfigurationGQLType()