Files
open-webui-ai4me/backend/open_webui/routers
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
..
2026-02-11 16:24:11 -06:00
2026-02-11 17:56:49 -06:00
2026-02-11 18:25:37 -06:00
2026-02-12 15:52:50 -06:00
2026-01-29 18:51:02 +04:00
2026-01-22 03:11:33 +04:00
2026-01-09 20:44:31 +04:00
2026-02-09 13:28:14 -06:00
2026-02-11 16:24:11 -06:00
2026-02-11 16:24:11 -06:00
2026-02-11 16:24:11 -06:00
2026-02-11 16:24:11 -06:00
2026-02-11 15:55:23 -06:00
2026-02-12 11:01:46 -06:00
2026-02-12 11:04:34 -06:00
2026-02-11 18:24:30 -06:00
2026-02-12 15:25:24 -06:00
2026-02-11 16:24:11 -06:00
2026-02-12 17:35:22 -06:00
2026-02-11 16:24:11 -06:00