aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fields/util.ts4
1 files changed, 1 insertions, 3 deletions
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;
}