mirror of
https://github.com/outline/outline.git
synced 2026-11-22 14:01:41 +03:00
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:
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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user