mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-29 16:35:19 -05: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.