diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-07-23 10:25:00 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-07-23 10:25:00 -0400 |
commit | 0ea3c5b643a50de9cea673b769f5514fcef5d86b (patch) | |
tree | a4219bc1008d2f3e71b5a621951c4282ae4e2ad3 /src/fields/util.ts | |
parent | 00e853027010db1ce9ccf0ed041ecb74c6529b53 (diff) |
fixed very slow resize performance caused by fetchinProto when there are no acl's. made images not be natively draggable.
Diffstat (limited to 'src/fields/util.ts')
-rw-r--r-- | src/fields/util.ts | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/fields/util.ts b/src/fields/util.ts index 81ccbf6d9..20b072786 100644 --- a/src/fields/util.ts +++ b/src/fields/util.ts @@ -130,11 +130,6 @@ export function setGroups(groups: string[]) { export function GetEffectiveAcl(target: any, in_prop?: string | symbol | number): symbol { if (in_prop === UpdatingFromServer || target[UpdatingFromServer]) return AclEdit; - if (!target[AclSym] && target instanceof Doc) { - fetchProto(target); - } - - if (target[AclSym] && Object.keys(target[AclSym]).length) { if (target.__fields?.author === Doc.CurrentUserEmail || target.author === Doc.CurrentUserEmail || currentUserGroups.includes("admin")) return AclEdit; |