Skip to content

Commit

Permalink
Account for anonymous users when validating is_globus_user()
Browse files Browse the repository at this point in the history
  • Loading branch information
NickolausDS committed Oct 9, 2024
1 parent 1c2838d commit 5be6b90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions globus_portal_framework/gclients.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ def is_globus_user(user):
:returns: True if Globus association is present. False otherwise.
"""
if user.is_anonymous:
return False

try:
user.social_auth.get(provider="globus").extra_data
return True
Expand Down

0 comments on commit 5be6b90

Please sign in to comment.