mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-14 09:21:22 +00:00
refac: restrict collaborative document rooms to notes (#33752)
Collaborative editing now only opens note documents. Other document ids are ignored.
This commit is contained in:
parent
9f748cb5c9
commit
d221a4f69b
1 changed files with 3 additions and 0 deletions
|
|
@ -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', '')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue