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