mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #23624] [CLOSED] fix: enforce write permission on ydoc document updates #42913
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/23624
Author: @Classic298
Created: 4/12/2026
Status: ❌ Closed
Base:
dev← Head:fix/ydoc-write-permission-check📝 Commits (2)
402a033fix: enforce write permission on ydoc document updates71d2bb4merge: resolve conflicts with upstream async DB migration📊 Changes
2 files changed (+106 additions, -23 deletions)
View changed files
📝
backend/open_webui/main.py(+2 -0)📝
backend/open_webui/socket/main.py(+104 -23)📄 Description
The ydoc:document:update handler only checked room membership, which read-only users satisfy via ydoc:document:join. This allowed read-only users to persist and broadcast Yjs updates to shared notes. Adds a write permission check before any update is stored or broadcast.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.