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:
Classic298 2026-11-04 22:44:02 +01:00 • committed by GitHub
parent 9f748cb5c9
commit d221a4f69b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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