mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
Co-Authored-By: Boris Rybalkin <ribalkin@gmail.com>
This commit is contained in:
parent
0e73f7af09
commit
07cbc91a8e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue