mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 08:40:58 +00:00
Remove copy pasta error of calling value on bool
This commit is contained in:
parent
dc92178641
commit
c9d948f284
@ -2249,7 +2249,7 @@ async def oauth_callback(provider: str, request: Request, response: Response):
|
|||||||
role = user.role
|
role = user.role
|
||||||
if Users.get_num_users() == 1:
|
if Users.get_num_users() == 1:
|
||||||
role = "admin"
|
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)
|
oauth_roles = user_data.get(webui_app.state.config.OAUTH_ROLE_CLAIM)
|
||||||
if oauth_roles:
|
if oauth_roles:
|
||||||
for allowed_role in ["pending", "user", "admin"]:
|
for allowed_role in ["pending", "user", "admin"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user