Skip to content

Commit

Permalink
allow staff to cancel grants
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Owocki authored and Kevin Owocki committed Jan 25, 2021
1 parent 0a1d7ea commit 3a91008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/grants/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2023,7 +2023,7 @@ def cancel_grant_v1(request, grant_id):
response['message'] = 'error: grant cannot be found'
return JsonResponse(response)

if not is_grant_team_member(grant, profile):
if not is_grant_team_member(grant, profile) and not request.user.is_staff:
response['message'] = 'error: grant cancellation can be done only by grant owner'
return JsonResponse(response)

Expand Down

0 comments on commit 3a91008

Please sign in to comment.