diff --git a/backend/open_webui/socket/main.py b/backend/open_webui/socket/main.py index 29568d887..80e8b5be1 100644 --- a/backend/open_webui/socket/main.py +++ b/backend/open_webui/socket/main.py @@ -614,10 +614,10 @@ async def document_save_handler(document_id, data, user): user_id=user.get('id'), resource_type='note', resource_id=note.id, - permission='read', + permission='write', ) ): - log.error(f'User {user.get("id")} does not have access to note {note_id}') + log.error(f'User {user.get("id")} does not have write access to note {note_id}') return Notes.update_note_by_id(note_id, NoteUpdateForm(data=data))