Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
No-Issue

Signed-off-by: James Tanner <[email protected]>
  • Loading branch information
jctanner committed Sep 18, 2023
1 parent a9e43d2 commit de67adf
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions galaxy_ng/app/access_control/access_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,19 +771,12 @@ def is_namespace_owner(self, request, viewset, action):
if namespace is None and github_user and user.username == github_user:
return True

'''
# allow owners to do things in the namespace
if namespace and user.username in [x.username for x in namespace.owners.all()]:
return True
return False
'''

# v1 namespace rbac is controlled via their v3 namespace
v3_namespace = namespace.namespace
if not v3_namespace:
return False

# use the helper to get the list of owners
owners = get_v3_namespace_owners(v3_namespace)
if owners and user in owners:
return True
Expand Down

0 comments on commit de67adf

Please sign in to comment.