From 27034d1dc249513d7b33f7fb589f7a9167cbae99 Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 1 Aug 2024 14:46:04 +0200 Subject: [PATCH] chore: refs #4074 admit several acls --- src/composables/useAcl.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/composables/useAcl.js b/src/composables/useAcl.js index be6dbc241..f746b6677 100644 --- a/src/composables/useAcl.js +++ b/src/composables/useAcl.js @@ -16,9 +16,8 @@ export function useAcl() { state.setAcls(acls); } - function hasAny(model, props = [], accessType) { + function hasAny(model, props, accessType) { const acls = state.getAcls().value[model]; - Array.isArray(props) || (props = [props]); if (acls) return ['*', ...props].some((key) => { const acl = acls[key];