diff --git a/frontend.py b/frontend.py index 0a54d09..6fcdd2d 100644 --- a/frontend.py +++ b/frontend.py @@ -244,7 +244,7 @@ def oauth2_callback(provider): session["oauth2_provider"] = provider session["oauth2_userinfo"] = userinfo_json - user_is_admin = SSO_CONFIG[provider]["functions"]["is_admin"](userinfo) + user_is_admin = SSO_CONFIG[provider]["functions"]["is_admin"](userinfo_json) REDIS.set(f"admin:{userid}", "1" if user_is_admin else "0") if "redirect_after_login" in session: