forked from verdnatura/salix-front
chore: refs #4074 admit several acls
This commit is contained in:
parent
dcc2f4dfde
commit
27034d1dc2
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue