From 448ba0fae19337fe6c79b6544d8d4dc9050fc9cd Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 6 Sep 2026 21:02:00 +0900 Subject: [PATCH] fix: Disable the permission select on the personal document owner's row The owner's access comes from the document itself, so the membership permission is not editable. Co-Authored-By: Claude Fable 5 --- app/components/Sharing/Document/DocumentMemberList.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/Sharing/Document/DocumentMemberList.tsx b/app/components/Sharing/Document/DocumentMemberList.tsx index 2c07d7ca30..b3977d1a8d 100644 --- a/app/components/Sharing/Document/DocumentMemberList.tsx +++ b/app/components/Sharing/Document/DocumentMemberList.tsx @@ -206,8 +206,8 @@ function DocumentMemberList({ document, invitedInSession }: Props) { ); })} {members.map((item) => { - // The owner cannot be removed from their own personal document, so - // their row offers neither remove nor leave. + // The owner's access comes from the document itself and cannot be + // changed or removed, so their row is read-only. const isPersonalOwner = item.id === document.personalOwnerId; return ( handleRemoveUser(item) } onUpdate={ - can.manageUsers + can.manageUsers && !isPersonalOwner ? (permission) => handleUpdateUser(item, permission) : undefined }