diff options
author | bobzel <zzzman@gmail.com> | 2022-05-26 15:36:32 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-05-26 15:36:32 -0400 |
commit | 76d737a05093e4132f2ab56630c4003879747ef9 (patch) | |
tree | 2aa500aac8c6ecf5b7d4f6f7df1c39ebb43af976 /src/fields/Doc.ts | |
parent | a01cd55030f549b1c4c207d23731a00e689989c3 (diff) |
removed setting 'data' field of docking views on aliases. assigned acl's to delegates to match prototype. changed how documents are created to make sure acl's are set first so that, when sharing, remote clients will get the ACLs first and not render documents transiently when they don't have permissions. turned off inheriting ACL's from outer collection
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index 194b3ba27..b0a45091e 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -821,6 +821,7 @@ export namespace Doc { delegate[Initializing] = true; delegate.proto = doc; delegate.author = Doc.CurrentUserEmail; + Object.keys(doc).filter(key => key.startsWith("acl")).forEach(key => delegate[key] = doc[key]); if (!Doc.IsSystem(doc)) Doc.AddDocToList(doc[DataSym], "aliases", delegate); title && (delegate.title = title); delegate[Initializing] = false; |