aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-07-21 15:49:37 -0400
committerGitHub <noreply@github.com>2020-07-21 15:49:37 -0400
commitb4b817585995b4ce504564cb0601f34ed86fc4db (patch)
treed10fe452916bf2a125ecd85b28171f9afb163a36 /src/client/documents
parent2d0741800ed626ac3db2a8ac551904cbc0f7848e (diff)
parent6b9a6fcd3c4e9bc63be11b820ad16be7495ed803 (diff)
Merge pull request #453 from browngraphicslab/acls_uv
ACLs for testing
Diffstat (limited to 'src/client/documents')
-rw-r--r--src/client/documents/Documents.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 36c8a0d3b..657ba521b 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -550,6 +550,9 @@ export namespace Docs {
const dataDoc = MakeDataDelegate(proto, protoProps, data, fieldKey);
const viewDoc = Doc.MakeDelegate(dataDoc, delegId);
+ // so that the list of annotations is already initialised, prevents issues in addonly
+ dataDoc[fieldKey + "-annotations"] = new List<Doc>();
+
proto.links = ComputedField.MakeFunction("links(self)");
viewDoc.author = Doc.CurrentUserEmail;