From fb496d7fc6af75774a8574f06e16d1a26778d6a4 Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 1 Aug 2024 16:08:40 +0200 Subject: [PATCH] chore: refs #4074 admit several acls --- src/composables/useAcl.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/composables/useAcl.js b/src/composables/useAcl.js index f746b6677..bebeda039 100644 --- a/src/composables/useAcl.js +++ b/src/composables/useAcl.js @@ -18,6 +18,7 @@ export function useAcl() { 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];