mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-15 09:31:21 +00:00
fix: readers see a remove button on a shared note's files (#33281)
Since a recent dev change, a reader opening a shared note sees the remove button on every file in the note, although clicking it does nothing. The editor was created editable and only switched to read-only afterwards, so the files were drawn as if the reader could edit. It now starts read-only for readers, and their files show without the button. Fixes #33279
This commit is contained in:
parent
58536b6503
commit
0a4be809c4
1 changed files with 1 additions and 0 deletions
|
|
@ -1051,6 +1051,7 @@
|
|||
...(collaboration && provider ? [provider.getEditorExtension()] : [])
|
||||
],
|
||||
content: provider ? undefined : content,
|
||||
editable,
|
||||
autofocus: messageInput && !$showCallOverlay,
|
||||
onTransaction: ({ transaction }) => {
|
||||
if (!editor) return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue