Skip to content

Commit

Permalink
Merge pull request #204 from dimagi/ce/superuser-access
Browse files Browse the repository at this point in the history
allow superusers to view all orgs
  • Loading branch information
calellowitz authored Dec 6, 2023
2 parents ddaf32b + 600649d commit d540df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commcare_connect/organization/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


def _request_user_is_member(request):
return request.org and request.org_membership
return (request.org and request.org_membership) or request.user.is_superuser


def _request_user_is_admin(request):
Expand Down

0 comments on commit d540df9

Please sign in to comment.