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