Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #315 from FIRST-Tech-Challenge/2023.05.25-team-ass…
Browse files Browse the repository at this point in the history
…ignment

Ensure team assignment when site is closed.
  • Loading branch information
cmacfarl authored May 25, 2023
2 parents e2c1898 + dcddbc0 commit dcf685e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app_engine/app_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,6 @@ def login_via_oidc():

team_roles = oidc.user_getfield('team_roles')

check_site_status()

#
# There are a couple reasons that a user might have no team roles, lack
Expand All @@ -443,6 +442,7 @@ def login_via_oidc():
# so we will throw NoRoles if there are no team roles defined.
#
if len(team_roles) == 0:
check_site_status()
raise NoRoles()

#
Expand Down

0 comments on commit dcf685e

Please sign in to comment.