diff options
author | srichman333 <sarah_n_richman@brown.edu> | 2023-06-23 11:11:07 -0400 |
---|---|---|
committer | srichman333 <sarah_n_richman@brown.edu> | 2023-06-23 11:11:07 -0400 |
commit | 32239432b79664f577bf0c84d4688c4e5cf7f14f (patch) | |
tree | b581d7cbaf0f4ae40b7967a084fe9a0ac283184c /src/fields/util.ts | |
parent | 1a9ecbb274e7b95a5b1dca6c45c329d9a32432c7 (diff) |
acls in proto so that layout acls start cleared
Diffstat (limited to 'src/fields/util.ts')
-rw-r--r-- | src/fields/util.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/util.ts b/src/fields/util.ts index f31213869..1ac450b9a 100644 --- a/src/fields/util.ts +++ b/src/fields/util.ts @@ -242,7 +242,7 @@ export function distributeAcls(key: string, acl: SharingPermissions, target: Doc if (!visited) visited = [] as Doc[]; if (!target || visited.includes(target)) return; if ((target._type_collection === CollectionViewType.Docking && visited.length > 1) || Doc.GetProto(visited[0]) !== Doc.GetProto(target)) { - Doc.GetProto(target)[key] = acl; + target[key] = acl; if (target !== Doc.GetProto(target)) { //apparently we can't call updateCachedAcls twice (once for the main dashboard, and again for the nested dashboard...???) updateCachedAcls(target); |