From d221a4f69b2a25b142cb271375889293dcd2b146 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 4 Nov 2026 22:44:02 +0100 Subject: [PATCH] refac: restrict collaborative document rooms to notes (#33752) Collaborative editing now only opens note documents. Other document ids are ignored. --- backend/open_webui/socket/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/open_webui/socket/main.py b/backend/open_webui/socket/main.py index 189cb1a45a..41879589ff 100644 --- a/backend/open_webui/socket/main.py +++ b/backend/open_webui/socket/main.py @@ -1040,6 +1040,9 @@ async def ydoc_document_join(sid, data): ): log.error(f'User {user.get("id")} does not have access to note {note_id}') return + else: + # Only notes have access checks, so no other document gets a room. + return user_id = user['id'] user_name = user.get('name', '')