open-webui/backend/open_webui
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
..
data
internal
migrations
models
retrieval revert: faulty dedup code 2025-02-20 11:02:45 -08:00
routers chore: format 2025-02-20 01:01:29 -08:00
socket
static refac 2025-02-15 21:14:03 -08:00
storage formatting 2025-02-18 15:19:35 -05:00
test Update test_provider.py 2025-02-18 15:53:54 -05:00
utils Fix: Ensure user_oauth_groups defaults to an empty list to prevent TypeError 2025-02-21 22:25:22 +01:00
__init__.py
alembic.ini
config.py Merge pull request #10445 from PkmX/pr-fix-web-search-proxy 2025-02-20 11:16:47 -08:00
constants.py
env.py refac 2025-02-16 00:11:18 -08:00
functions.py
main.py refac 2025-02-19 18:22:31 -08:00
tasks.py