0
0
Fork 0

chore: refs #4074 admit several acls

This commit is contained in:
Jorge Penadés 2024-08-01 16:08:40 +02:00
parent 27034d1dc2
commit fb496d7fc6
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ export function useAcl() {
function hasAny(model, props, accessType) { function hasAny(model, props, accessType) {
const acls = state.getAcls().value[model]; const acls = state.getAcls().value[model];
Array.isArray(props) || (props = [props]);
if (acls) if (acls)
return ['*', ...props].some((key) => { return ['*', ...props].some((key) => {
const acl = acls[key]; const acl = acls[key];