mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-17 23:52:29 +00:00
The SharingPermissions model defaulted public_tools and public_notes to True while the config defaults (USER_PERMISSIONS_WORKSPACE_TOOLS_ALLOW_PUBLIC_SHARING and USER_PERMISSIONS_NOTES_ALLOW_PUBLIC_SHARING) are both False. On an instance whose stored user.permissions config predates these keys, GET /api/v1/users/default/permissions fills the gap from the model and reports both as enabled, while has_permission fills it from DEFAULT_USER_PERMISSIONS and denies. Saving any unrelated permission then persists the model's True, granting public tool and note sharing the admin never enabled. |
||
|---|---|---|
| .. | ||
| data | ||
| internal | ||
| migrations | ||
| models | ||
| retrieval | ||
| routers | ||
| socket | ||
| static | ||
| storage | ||
| tools | ||
| utils | ||
| __init__.py | ||
| alembic.ini | ||
| config.py | ||
| constants.py | ||
| env.py | ||
| events.py | ||
| functions.py | ||
| main.py | ||
| tasks.py | ||