From 35e1dd84df8227a34f2665084276e4e629b362fb Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Mon, 23 Dec 2024 22:03:33 +0100 Subject: [PATCH] fix typo --- frontend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: