diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-09-25 16:28:32 +0530 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-09-25 16:28:32 +0530 |
commit | d64e80bcff5394da469c6bbdf8709e172b8936bb (patch) | |
tree | 838e3c52e7fadfcf352fdd4090db509526bf80d7 /src/fields/util.ts | |
parent | 56d59f8020a01c44a7027d03bd1d8bf2d87b4cb1 (diff) |
changed unset to None and minor changes
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 20ba1ca39..989166bf8 100644 --- a/src/fields/util.ts +++ b/src/fields/util.ts @@ -280,7 +280,7 @@ export function setter(target: any, in_prop: string | symbol | number, value: an if (effectiveAcl !== AclEdit && effectiveAcl !== AclAdmin) return true; // if you're trying to change an acl but don't have Admin access / you're trying to change it to something that isn't an acceptable acl, you can't - if (typeof prop === "string" && prop.startsWith("acl") && (effectiveAcl !== AclAdmin || ![...Object.values(SharingPermissions), undefined, "unset"].includes(value))) return true; + if (typeof prop === "string" && prop.startsWith("acl") && (effectiveAcl !== AclAdmin || ![...Object.values(SharingPermissions), undefined, "None"].includes(value))) return true; // if (typeof prop === "string" && prop.startsWith("acl") && !["Can Edit", "Can Add", "Can View", "Not Shared", undefined].includes(value)) return true; if (typeof prop === "string" && prop !== "__id" && prop !== "__fields" && (prop.startsWith("_") || layoutProps.includes(prop))) { |