Skip to content

Commit 584a9a0

Browse files
committed
refac
1 parent 124b7e9 commit 584a9a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/open_webui/socket/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,10 +614,10 @@ async def document_save_handler(document_id, data, user):
614614
user_id=user.get('id'),
615615
resource_type='note',
616616
resource_id=note.id,
617-
permission='read',
617+
permission='write',
618618
)
619619
):
620-
log.error(f'User {user.get("id")} does not have access to note {note_id}')
620+
log.error(f'User {user.get("id")} does not have write access to note {note_id}')
621621
return
622622

623623
Notes.update_note_by_id(note_id, NoteUpdateForm(data=data))

0 commit comments

Comments
 (0)