aboutsummaryrefslogtreecommitdiff
path: root/src/fields/util.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/fields/util.ts')
-rw-r--r--src/fields/util.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fields/util.ts b/src/fields/util.ts
index cc29c7df9..068323dce 100644
--- a/src/fields/util.ts
+++ b/src/fields/util.ts
@@ -209,9 +209,13 @@ export function SetCachedGroups(groups: string[]) {
}
function getEffectiveAcl(target: any, user?: string): symbol {
const targetAcls = target[DocAcl];
- if (targetAcls?.['acl-Me'] === AclAdmin || GetCachedGroupByName('Admin')) return AclAdmin;
+ // if (targetAcls?.['acl-Me'] === AclAdmin || GetCachedGroupByName('Admin')) return AclAdmin;
const userChecked = user || Doc.CurrentUserEmail; // if the current user is the author of the document / the current user is a member of the admin group
+
+ // guest dashboard permissions error
+ if (userChecked == 'guest' && target._type_collection == CollectionViewType.Docking) return AclAugment;
+
if (targetAcls && Object.keys(targetAcls).length) {
let effectiveAcl = AclPrivate;
for (const [key, value] of Object.entries(targetAcls)) {