mirror of
https://github.com/open-webui/open-webui
synced 2025-03-05 03:48:55 +00:00
When the OAuth groups claim does not yield a list, `user_oauth_groups` was previously set to None, causing a TypeError during membership checks. Changed this default to an empty list (`[]`) to ensure the variable is always iterable, preventing errors for non-admin users while logging in. This fix ensures stability in the `update_user_groups` function. |
||
---|---|---|
.. | ||
images | ||
access_control.py | ||
auth.py | ||
chat.py | ||
code_interpreter.py | ||
filter.py | ||
middleware.py | ||
misc.py | ||
models.py | ||
oauth.py | ||
payload.py | ||
pdf_generator.py | ||
plugin.py | ||
response.py | ||
security_headers.py | ||
task.py | ||
tools.py | ||
webhook.py |