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];