diff options
author | bobzel <zzzman@gmail.com> | 2020-08-12 10:41:02 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-08-12 10:41:02 -0400 |
commit | e976cf57176b5ba8d758ccfd63d443c291781b4f (patch) | |
tree | 48286ba9ba6b8e1d4df2ece5d2f58944869fbc4c /src/fields/util.ts | |
parent | 318a45b6b428a459ade553fef7fd8c26e485eccb (diff) |
changed iconifying (or setting templates on) readonly documents to work by setting the layout on the layout oducment
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 4c71572db..4edaea264 100644 --- a/src/fields/util.ts +++ b/src/fields/util.ts @@ -162,7 +162,7 @@ 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 // but not if the doc in question is an alias - the current user will be the author of their alias rather than the original author - if ((Doc.CurrentUserEmail === (target.__fields?.author || target.author) && !(target.aliasOf || target.__fields?.aliasOf)) || currentUserGroups.includes("admin")) return AclAdmin; + if (Doc.CurrentUserEmail === (target.__fields?.author || target.author) || 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; |