From 53fe9a1e2503d8112ddb2f2101f46d5a2e23c791 Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 5 Jul 2023 20:29:38 -0400 Subject: from last --- src/fields/util.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/fields/util.ts b/src/fields/util.ts index 48de36efe..fc0057827 100644 --- a/src/fields/util.ts +++ b/src/fields/util.ts @@ -256,12 +256,10 @@ function getEffectiveLayoutAcl(target: any, user?: string): symbol { if (effectiveAcl) { return DocServer?.Control?.isReadOnly?.() && HierarchyMapping.get(effectiveAcl)!.level < aclLevel.editable ? AclEdit : effectiveAcl; - } else { - return GetEffectiveAcl(Doc.GetProto(target['embedContainer']), user); } } // authored documents are private until an ACL is set. - const targetAuthor = target.__fieldTuples?.author || target.author; // target may be a Doc of Proxy, so check __fieldTuples.author and .author + const targetAuthor = target.__fieldTuples?.author || target.author; // target may be a Doc or Proxy, so check __fieldTuples.author and .author if (targetAuthor && targetAuthor !== userChecked) return AclPrivate; return AclAdmin; } -- cgit v1.2.3-70-g09d2