mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-10 03:27:57 +00:00
refac
This commit is contained in:
parent
124b7e9154
commit
584a9a0920
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue