open-webui/backend/open_webui/utils
Jeannot Damoiseaux d50098b622
Fix: Ensure user_oauth_groups defaults to an empty list to prevent TypeError
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.
2025-02-21 22:25:22 +01:00
..
images
access_control.py
auth.py refac 2025-02-17 21:34:06 -08:00
chat.py Merge pull request #10209 from i-infra/iinf/fix-for-openrouter 2025-02-17 15:24:21 -08:00
code_interpreter.py
filter.py
middleware.py enh: configurable jupyter execution timeout 2025-02-19 17:05:37 -08:00
misc.py
models.py
oauth.py Fix: Ensure user_oauth_groups defaults to an empty list to prevent TypeError 2025-02-21 22:25:22 +01:00
payload.py chore: format 2025-02-20 01:01:29 -08:00
pdf_generator.py
plugin.py
response.py chore: format 2025-02-20 01:01:29 -08:00
security_headers.py
task.py
tools.py
webhook.py refac 2025-02-16 00:11:18 -08:00