mirror of
https://github.com/open-webui/open-webui
synced 2025-06-10 00:17:52 +00:00
move comment to top
This commit is contained in:
parent
681851ca6b
commit
1f2b5fa68f
@ -82,9 +82,8 @@ class OAuthManager:
|
|||||||
oauth_allowed_roles = auth_manager_config.OAUTH_ALLOWED_ROLES
|
oauth_allowed_roles = auth_manager_config.OAUTH_ALLOWED_ROLES
|
||||||
oauth_admin_roles = auth_manager_config.OAUTH_ADMIN_ROLES
|
oauth_admin_roles = auth_manager_config.OAUTH_ADMIN_ROLES
|
||||||
oauth_roles = None
|
oauth_roles = None
|
||||||
role = (
|
# Default/fallback role if no matching roles are found
|
||||||
auth_manager_config.DEFAULT_USER_ROLE
|
role = auth_manager_config.DEFAULT_USER_ROLE
|
||||||
) # Default/fallback role if no matching roles are found
|
|
||||||
|
|
||||||
# Next block extracts the roles from the user data, accepting nested claims of any depth
|
# Next block extracts the roles from the user data, accepting nested claims of any depth
|
||||||
if oauth_claim and oauth_allowed_roles and oauth_admin_roles:
|
if oauth_claim and oauth_allowed_roles and oauth_admin_roles:
|
||||||
|
Loading…
Reference in New Issue
Block a user