diff options
author | bobzel <zzzman@gmail.com> | 2020-10-12 10:48:22 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-12 10:48:22 -0400 |
commit | 7ede13ca2df4e3889693e33b3f3100b04546d865 (patch) | |
tree | 45553ef0faba864f5ca82a0442d786a5ef80fc70 /src | |
parent | d1959f141a777397bd5eeb5d40bcfe7195538557 (diff) |
took out acl cache because it wasn't working for shared docs
Diffstat (limited to 'src')
-rw-r--r-- | src/fields/util.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fields/util.ts b/src/fields/util.ts index 5cd8df564..56736028a 100644 --- a/src/fields/util.ts +++ b/src/fields/util.ts @@ -154,7 +154,7 @@ export enum SharingPermissions { None = "Not Shared" } -// return acl from cache or cache the acl and return. +// return acl from cache or cache the acl and return. bcz: Argh! NOT WORKING ... nothing gets invalidated properly.... const getEffectiveAclCache = computedFn(function (target: any, playgroundProp: boolean, user?: string) { return getEffectiveAcl(target, playgroundProp, user); }, true); /** @@ -164,7 +164,7 @@ export function GetEffectiveAcl(target: any, in_prop?: string | symbol | number, if (!target) return AclPrivate; if (in_prop === UpdatingFromServer) return AclAdmin; // requesting the UpdatingFromServer prop must always go through to keep the local DB consistent const playgroundProp = in_prop && DocServer.PlaygroundFields?.includes(in_prop.toString()) ? true : false; - return getEffectiveAclCache(target, playgroundProp, user); + return getEffectiveAcl(target, playgroundProp, user); } function getEffectiveAcl(target: any, playgroundProp: boolean, user?: string): symbol { |