From c9d948f2847820a3df460bca5d0f22f5e0cb5598 Mon Sep 17 00:00:00 2001 From: "Willnow, Patrick" Date: Thu, 3 Oct 2024 21:38:56 +0200 Subject: [PATCH] Remove copy pasta error of calling value on bool --- backend/open_webui/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index e24a5a969..77d486fb7 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -2249,7 +2249,7 @@ async def oauth_callback(provider: str, request: Request, response: Response): role = user.role if Users.get_num_users() == 1: role = "admin" - elif webui_app.state.config.ENABLE_OAUTH_ROLE_MAPPING.value: + elif webui_app.state.config.ENABLE_OAUTH_ROLE_MAPPING: oauth_roles = user_data.get(webui_app.state.config.OAUTH_ROLE_CLAIM) if oauth_roles: for allowed_role in ["pending", "user", "admin"]: