From 2f47ded6b828d4390496df8f2bf33e899350d8cf Mon Sep 17 00:00:00 2001 From: James Tanner Date: Fri, 6 Oct 2023 11:21:21 -0400 Subject: [PATCH] checkin --- dev/scripts.community/check_unverified_users.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev/scripts.community/check_unverified_users.py b/dev/scripts.community/check_unverified_users.py index 81ea1098a2..b00281852c 100644 --- a/dev/scripts.community/check_unverified_users.py +++ b/dev/scripts.community/check_unverified_users.py @@ -176,8 +176,12 @@ def do_check(): print(f'{unverified_user} found related {found_users}') if found_users: + owned_namespaces = rbac.get_owned_v3_namespaces(unverified_user) for found_user in found_users: - print(f'FIX - copy perms from {unverified_user} to {found_user}') + found_namespaces = rbac.get_owned_v3_namespaces(found_user) + for owned_namespace in owned_namespaces: + if owned_namespace not in found_namespaces: + print(f'FIX - copy perms from {unverified_user} to {found_user} for ns:{owned_namespace}') #if 'IPvSean' in github_logins: # # print(gdata)