Skip to content

Commit

Permalink
OP-2169: Non admin users with grievance access can get config
Browse files Browse the repository at this point in the history
  • Loading branch information
dborowiecki committed Oct 26, 2024
1 parent 1a0deb4 commit e8bdb69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grievance_social_protection/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit e8bdb69

Please sign in to comment.