diff --git a/backend/open_webui/utils/oauth.py b/backend/open_webui/utils/oauth.py index c9eddc75af..17725959ee 100644 --- a/backend/open_webui/utils/oauth.py +++ b/backend/open_webui/utils/oauth.py @@ -1264,7 +1264,7 @@ class OAuthManager: if oauth_roles: matched = False for allowed_role in oauth_allowed_roles: - if allowed_role in oauth_roles: + if allowed_role == '*' or allowed_role in oauth_roles: log.debug('Assigned user the user role') role = 'user' matched = True