diff options
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 { |