Skip to content

Commit

Permalink
checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
jctanner committed Oct 4, 2023
1 parent 550dac2 commit 77be4d3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dev/scripts.commnunity/fix_social_users.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from django.contrib.auth import get_user_model
from social_django.models import UserSocialAuth

from galaxy_ng.app.utils import rbac
from galaxy_ng.app.utils.galaxy import generate_unverified_email


Expand Down Expand Up @@ -54,3 +55,12 @@
print(f'\t FIX - set email to empty string')
continue

# proably shouldn't be here if no sync users found?
if not synced_users:
continue

synced_user = sycned_users[0]

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

0 comments on commit 77be4d3

Please sign in to comment.