diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-06-22 12:59:01 -0400 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-06-22 12:59:01 -0400 |
commit | c396e3db55da4df3bed81b877107ac41497ff634 (patch) | |
tree | 21435d20cca6c1377d238ccd2849b5fe48ce7d65 /src | |
parent | 15614106911a419605cfeb692f15cb2c8d18d97c (diff) | |
parent | 7c7c1634a5ec37ec885bd8201c0350627b411b75 (diff) |
Merge branch 'sharing_scenario' of https://github.com/browngraphicslab/Dash-Web into sharing_scenario
Diffstat (limited to 'src')
-rw-r--r-- | src/fields/Doc.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index c9a5ee1bc..f5825fa66 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -251,9 +251,8 @@ export class Doc extends RefField { DocServer.GetRefField(this[Id], true); } }; - const effectiveAcl = GetEffectiveAcl(fKey); const writeMode = DocServer.getFieldWriteMode(fKey as string); - if (sameAuthor || effectiveAcl === AclEdit || effectiveAcl === AclAdmin || fKey.startsWith("acl") || writeMode !== DocServer.WriteMode.Playground) { + if (fKey.startsWith("acl") || writeMode !== DocServer.WriteMode.Playground) { delete this[CachedUpdates][fKey]; await fn(); } else { |