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<{ }} />
- +