From 07cbc91a8eba3a9a3b39588b2ae5de916930af70 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 1 Jun 2026 10:16:01 -0700 Subject: [PATCH] refac Co-Authored-By: Boris Rybalkin --- backend/open_webui/utils/oauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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