mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 15:53:59 -06: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:
@@ -1051,6 +1051,7 @@
|
||||
...(collaboration && provider ? [provider.getEditorExtension()] : [])
|
||||
],
|
||||
content: provider ? undefined : content,
|
||||
editable,
|
||||
autofocus: messageInput && !$showCallOverlay,
|
||||
onTransaction: ({ transaction }) => {
|
||||
if (!editor) return;
|
||||
|
||||
Reference in New Issue
Block a user