mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #24403] [CLOSED] fix: honor public chat sharing permission #114955
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24403
Author: @dutchaiagency
Created: 5/6/2026
Status: ❌ Closed
Base:
dev← Head:codex/public-chat-permission📝 Commits (1)
4d1c089fix: honor public chat sharing permission📊 Changes
3 files changed (+17 additions, -3 deletions)
View changed files
📝
backend/open_webui/config.py(+5 -0)📝
src/lib/components/chat/ShareChatModal.svelte(+10 -2)📝
src/lib/constants/permissions.ts(+2 -1)📄 Description
Summary
Why
/api/v1/chats/shared/{id}/access/update already filters public grants through sharing.public_chats, but that key is absent from the default backend/frontend permission schemas. For non-admin users, selecting Public can be accepted by the UI and then filtered out by the backend, which looks like the dialog jumping back to Private. This matches #24378's reported behavior.
Validation
No frontend dependency install was present in this clone (
ode_modules absent), so I kept validation to syntax/diff checks.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.