diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-07-31 13:59:04 +0530 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-07-31 13:59:04 +0530 |
commit | 19c0ca86ed6ff8d8644125fa119270fc79e0afc9 (patch) | |
tree | 84509a66acb8f45e7365fe1e6d9642b88d2ee82c /src/fields/util.ts | |
parent | 583b13be95734e22dcae558306ca94ff8ef8c7b4 (diff) |
integrated playgroundmode into geteffectiveacl, still some issues with deleting docs
Diffstat (limited to 'src/fields/util.ts')
-rw-r--r-- | src/fields/util.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/fields/util.ts b/src/fields/util.ts index 048b66b53..500daf0c7 100644 --- a/src/fields/util.ts +++ b/src/fields/util.ts @@ -122,10 +122,6 @@ export function togglePlaygroundMode() { playgroundMode = !playgroundMode; } -export function getPlaygroundMode() { - return playgroundMode; -} - // the list of groups that the current user is a member of let currentUserGroups: string[] = []; @@ -188,7 +184,7 @@ export function GetEffectiveAcl(target: any, in_prop?: string | symbol | number) } } } - return effectiveAcl; + return playgroundMode && HierarchyMapping.get(effectiveAcl)! < 3 ? AclEdit : effectiveAcl; } return AclAdmin; } |