From b42053321463ca709ff440d0b50abdd57cd633bf Mon Sep 17 00:00:00 2001 From: Timothy Cardoza Date: Fri, 27 Feb 2026 16:08:09 -0600 Subject: [PATCH] write access fix --- src/views/NotepadView.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/NotepadView.tsx b/src/views/NotepadView.tsx index 2f7e03e..0753efa 100644 --- a/src/views/NotepadView.tsx +++ b/src/views/NotepadView.tsx @@ -159,7 +159,8 @@ export const NotepadView: Component<{ }> {(note) => { - const canEdit = note().user === currentUserId; + const isOwner = note().user === currentUserId; + const canEdit = isOwner || !note().isPrivate; return ( <> @@ -186,7 +187,7 @@ export const NotepadView: Component<{ }} />
- +