mirror of
https://github.com/open-webui/open-webui
synced 2025-03-04 19:38:54 +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. |
||
---|---|---|
.. | ||
data | ||
internal | ||
migrations | ||
models | ||
retrieval | ||
routers | ||
socket | ||
static | ||
storage | ||
test | ||
utils | ||
__init__.py | ||
alembic.ini | ||
config.py | ||
constants.py | ||
env.py | ||
functions.py | ||
main.py | ||
tasks.py |