aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Doc.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-07-11 21:40:54 -0400
committerbobzel <zzzman@gmail.com>2023-07-11 21:40:54 -0400
commit89a60fc1d56f71ad2cd397ccceac9b2e10aa9769 (patch)
treeb5e2756f0bd13128d936825f1a815a9c69cc95cb /src/fields/Doc.ts
parent79d262e071d200416acfb80181f22b8c016a7c3f (diff)
changed expanded templates to always be public
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r--src/fields/Doc.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts
index 6121668e3..a1aea1563 100644
--- a/src/fields/Doc.ts
+++ b/src/fields/Doc.ts
@@ -936,6 +936,7 @@ export namespace Doc {
newLayoutDoc.rootDocument = targetDoc;
const dataDoc = Doc.GetProto(targetDoc);
newLayoutDoc.resolvedDataDoc = dataDoc;
+ newLayoutDoc['acl-Guest'] = SharingPermissions.Edit;
if (dataDoc[templateField] === undefined && templateLayoutDoc[templateField] instanceof List && (templateLayoutDoc[templateField] as any).length) {
dataDoc[templateField] = ComputedField.MakeFunction(`ObjectField.MakeCopy(templateLayoutDoc["${templateField}"] as List)`, { templateLayoutDoc: Doc.name }, { templateLayoutDoc });
}