fix: hide Insert into note on a note the viewer may only read (#30223)

This commit is contained in:
G30 authored and GitHub committed 2026-09-21 08:32:17 -04:00
1 parent f40318c1ff
commit d9ea46f92d
1 file changed
+1 -1
+1 -1
View File
@@ -1507,7 +1507,7 @@ ${content}
embeddedDraftKey={noteChatDraftKey}
suggestedPrompts={noteChatSuggestedPrompts}
selectedText={selectedContent?.text ?? ''}
onInsertToNote={insertHandler}
onInsertToNote={note?.write_access ? insertHandler : null}
onNewEmbeddedChat={createNoteChat}
onCreateEmbeddedChat={createNoteChatOnFirstMessage}
onSelectEmbeddedChat={(chatId) => {