From aa05c31181e3bf734e3c705fba83a52ebdb25aa4 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Wed, 4 Oct 2023 20:27:07 -0400 Subject: [PATCH] checkin --- dev/scripts.community/fix_social_users.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dev/scripts.community/fix_social_users.py b/dev/scripts.community/fix_social_users.py index 2fa877cab1..929804329b 100644 --- a/dev/scripts.community/fix_social_users.py +++ b/dev/scripts.community/fix_social_users.py @@ -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: