Skip to content

Commit

Permalink
allow superusers to view all orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
calellowitz committed Nov 22, 2023
1 parent 108ef00 commit 600649d
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 600649d

Please sign in to comment.