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 5e2c061 commit b7f8e44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dev/scripts.community/fix_social_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,14 @@ def find_related_v3_namespaces(github_login):
continue
synced_user = synced_users[0]

print(f'\tFIX - copy perms from {synced_user.username} to {current_user.username}')

# does the synced user have content?
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)
Expand Down

0 comments on commit b7f8e44

Please sign in to comment.