fix: Use the generic access row for another user's personal document

The owner's name is not sent to other members, so interpolating it risked
rendering an empty label. Only the owner sees the personal row now.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Tom MoorandClaude Opus 5 committed 2026-08-17 08:37:58 -04:00
1 parent ec8f5c357b
commit 2569dddb33
3 files changed
+3 -20

No files matched your search

@@ -173,27 +173,15 @@ export const AccessControlList = observer(
invitedInSession={invitedInSession}
/>
)}
{document.isPersonal ? (
{document.isPersonalToMe ? (
<ListItem
image={
<Squircle color={theme.accent} size={AvatarSize.Medium}>
<PadlockIcon color={theme.accentText} size={16} />
</Squircle>
}
title={
document.isPersonalToMe
? t("Personal")
: t("Personal to {{ name }}", {
name: document.personalOwner?.name,
})
}
subtitle={
document.isPersonalToMe
? t("Only people you invite have access")
: t("Only people {{ name }} invites have access", {
name: document.personalOwner?.name,
})
}
title={t("Personal")}
subtitle={t("Only people you invite have access")}
/>
) : (
<ListItem
-3
View File
@@ -125,9 +125,6 @@ export default class Document extends ArchivableModel implements Searchable {
@observable
personalOwnerId?: string | null;
@Relation(() => User)
personalOwner: User | undefined;
/**
* The collection that this document belongs to.
*/
@@ -583,9 +583,7 @@
"Can view": "Can view",
"Everyone in the collection": "Everyone in the collection",
"You have full access": "You have full access",
"Personal to {{ name }}": "Personal to {{ name }}",
"Only people you invite have access": "Only people you invite have access",
"Only people {{ name }} invites have access": "Only people {{ name }} invites have access",
"Other people": "Other people",
"Other workspace members may have access": "Other workspace members may have access",
"This document may be shared with more workspace members through a parent document or collection you do not have access to": "This document may be shared with more workspace members through a parent document or collection you do not have access to",