aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorusodhi <61431818+usodhi@users.noreply.github.com>2020-08-15 01:42:57 +0530
committerusodhi <61431818+usodhi@users.noreply.github.com>2020-08-15 01:42:57 +0530
commit5b4b916b2700da746c12754ba3238eb1f3bbf5f7 (patch)
treefff734963da07ee4bf2dcaf1bc195b6363a39c77 /src/client/documents/Documents.ts
parent19ca5143d050368284ab91ad4a096a674fe84646 (diff)
many changes to acls, aliases, sharing sidebar etc
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 42ba4d2c4..c424c2bef 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -575,7 +575,7 @@ export namespace Docs {
// without this, if a doc has no annotations but the user has AddOnly privileges, they won't be able to add an annotation because they would have needed to create the field's list which they don't have permissions to do.
dataDoc[fieldKey + "-annotations"] = new List<Doc>();
- dataDoc.aliases = new List<Doc>();
+ dataDoc.aliases = new List<Doc>([viewDoc]);
proto.links = ComputedField.MakeFunction("links(self)");