Browse Source

move comment to top

Rodrigo Agundez 3 months ago
parent
commit
1f2b5fa68f
1 changed files with 2 additions and 3 deletions
  1. 2 3
      backend/open_webui/utils/oauth.py

+ 2 - 3
backend/open_webui/utils/oauth.py

@@ -82,9 +82,8 @@ class OAuthManager:
             oauth_allowed_roles = auth_manager_config.OAUTH_ALLOWED_ROLES
             oauth_admin_roles = auth_manager_config.OAUTH_ADMIN_ROLES
             oauth_roles = None
-            role = (
-                auth_manager_config.DEFAULT_USER_ROLE
-            )  # Default/fallback role if no matching roles are found
+            # Default/fallback role if no matching roles are found
+            role = auth_manager_config.DEFAULT_USER_ROLE
 
             # 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: