Skip to content

Commit

Permalink
checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
jctanner committed Oct 5, 2023
1 parent b7f8e44 commit aa05c31
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dev/scripts.community/fix_social_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,16 @@ def find_related_v3_namespaces(github_login):
continue
synced_user = synced_users[0]

# does the synced user have content?
# copy ownership ...
owned_namespaces = rbac.get_owned_v3_namespaces(synced_user)
print(f'\t{synced_user.id} owns {owned_namespaces}')

if owned_namespaces:
for ns in owned_namespaces:
ns_owners = rbac.get_v3_namespace_owners(ns)
print(f'\t{ns} owners {ns_owners}')
if current_user not in ns_owners:
print(f'\tFIX - make {current_user} owner of {ns}')
#rbac.add_user_to_v3_namespace(current_user, ns)
rbac.add_user_to_v3_namespace(current_user, ns)

related_namespaces = find_related_v3_namespaces(github_login)
for rnamespace in related_namespaces:
Expand Down

0 comments on commit aa05c31

Please sign in to comment.