diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-08-12 22:14:37 +0530 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-08-12 22:14:37 +0530 |
commit | 56ae02ffc13d69f6e79f327ea99d154f03e0fd34 (patch) | |
tree | d3f9b89b33d216c4ca5d9b522b93b7b2831a5520 /src/fields/Doc.ts | |
parent | c01cb1dcda454a80555d2ae041800ef3bd261d81 (diff) | |
parent | e976cf57176b5ba8d758ccfd63d443c291781b4f (diff) |
merged
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index b535fea5a..00ffe399e 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -806,7 +806,8 @@ export namespace Doc { target[targetKey] = new PrefetchProxy(templateDoc); } else { titleTarget && (Doc.GetProto(target).title = titleTarget); - Doc.GetProto(target)[targetKey] = new PrefetchProxy(templateDoc); + const setDoc = [AclAdmin, AclEdit].includes(GetEffectiveAcl(Doc.GetProto(target))) ? Doc.GetProto(target) : target; + setDoc[targetKey] = new PrefetchProxy(templateDoc); } } return target; |