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', '')