From dcddbc044814d03d044ef5405f9e48e11f88ab47 Mon Sep 17 00:00:00 2001 From: Craig MacFarlane Date: Thu, 25 May 2023 10:11:59 -0700 Subject: [PATCH] Ensure team assignment when site is closed. --- server/app_engine/app_engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app_engine/app_engine.py b/server/app_engine/app_engine.py index bc09649..1239857 100644 --- a/server/app_engine/app_engine.py +++ b/server/app_engine/app_engine.py @@ -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 @@ -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() #