diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-09-21 21:21:03 +0530 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-09-21 21:21:03 +0530 |
commit | 93670ebde5de9c602aa45d0e06f377e8d3f89ce8 (patch) | |
tree | 85b7d702faefd530f93541906e60d3eb27f56bfa /src/fields/util.ts | |
parent | b121cbabb129f0ab07a382cb8b522cd8d6bce7cb (diff) |
minor changes
Diffstat (limited to 'src/fields/util.ts')
-rw-r--r-- | src/fields/util.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fields/util.ts b/src/fields/util.ts index 9e5890aa8..31d5cc5f2 100644 --- a/src/fields/util.ts +++ b/src/fields/util.ts @@ -165,11 +165,10 @@ export function GetEffectiveAcl(target: any, in_prop?: string | symbol | number, // if the current user is the author of the document / the current user is a member of the admin group const userChecked = user || Doc.CurrentUserEmail; if (userChecked === (target.__fields?.author || target.author)) return AclAdmin; + if (currentUserGroups.includes("Admin")) return AclAdmin; if (target[AclSym] && Object.keys(target[AclSym]).length) { - if (currentUserGroups.includes("Admin")) return AclAdmin; - // if the acl is being overriden or the property being modified is one of the playground fields (which can be freely modified) if (_overrideAcl || (in_prop && DocServer.PlaygroundFields?.includes(in_prop.toString()))) return AclEdit; |