0
0
Fork 0

chore: refs #4074 admit several acls

This commit is contained in:
Jorge Penadés 2024-08-01 14:46:04 +02:00
parent dcc2f4dfde
commit 27034d1dc2
1 changed files with 1 additions and 2 deletions

View File

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