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 304fd8f commit 17baf03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dev/scripts.community/fix_social_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,17 @@ def find_related_v3_namespaces(github_login):

if not synced_users and current_user.email and current_user.email == unverified_email:
print(f'\t FIX - set email to empty string')
current_user.email = ''
current_user.save()
continue

# proably shouldn't be here if no sync users found?
if not synced_users:
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}')
Expand Down

0 comments on commit 17baf03

Please sign in to comment.