open-webui/backend/open_webui
Classic298 73776d54b8
fix: enforce public sharing permission checks across all resource types (#21358)
The sharePublic prop in editor components (Knowledge, Tools, Skills,
Prompts, Models) incorrectly included an "|| edit" / "|| write_access"
condition, allowing users with write access to see and use the "Public"
sharing option regardless of their actual public sharing permission.
Additionally, all backend access/update endpoints only verified write
authorization but did not check the corresponding sharing.public_*
permission, allowing direct API calls to bypass frontend restrictions
entirely.
Frontend: removed the edit/write_access bypass from sharePublic in all
five editor components so visibility is gated solely by the user's
sharing.public_* permission or admin role.
Backend: added has_public_read_access_grant checks to the access/update
endpoints in knowledge.py, tools.py, prompts.py, skills.py, models.py,
and notes.py. Public grants are silently stripped when the user lacks
the corresponding permission.
Fixes #21356
2026-02-13 11:22:32 -06:00
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
internal chore: format 2026-02-11 16:24:11 -06:00
migrations chore: format 2026-02-11 16:24:11 -06:00
models fix: PostgreSQL cannot use get_chat_ids_by_model_id 2026-02-13 11:20:26 -06:00
retrieval chore: format 2026-02-11 16:24:11 -06:00
routers fix: enforce public sharing permission checks across all resource types (#21358) 2026-02-13 11:22:32 -06:00
socket init (#20883) 2026-02-12 15:50:13 -06:00
static refac 2025-08-10 00:02:58 +04:00
storage chore: format 2026-02-11 16:24:11 -06:00
test rm: outdated tests 2025-12-28 23:35:09 +04:00
tools chore: format 2026-02-11 16:24:11 -06:00
utils chore: format 2026-02-12 16:13:48 -06:00
__init__.py Update __init__.py 2025-04-15 09:55:35 +02:00
alembic.ini fix: Alembic CLI commands from failing 2025-08-15 04:17:47 -04:00
config.py chore: format 2026-02-12 17:36:19 -06:00
constants.py feat/enh: optional password validation 2025-11-20 17:44:49 -05:00
env.py refac 2026-02-12 15:25:24 -06:00
functions.py chore: format 2026-02-11 16:24:11 -06:00
main.py fix: prevent worker death during document upload by using run_coroutine_threadsafe (#21158) 2026-02-12 15:22:57 -06:00
tasks.py refac 2026-02-12 15:29:34 -06:00