vue-acl
vue-acl copied to clipboard
checker update
https://github.com/leonardovilarinho/vue-acl/blob/affd849636e24f00c5be6e83faa86d8d6bc9ffe8/source/checker.js#L9
This line doesn't allow a router rule such as:
meta: {
rule: '*'
}
to go through, It remains invalid, as it is not a predefined rule, which means this section let's it run through as a simple string: https://github.com/leonardovilarinho/vue-acl/blob/affd849636e24f00c5be6e83faa86d8d6bc9ffe8/source/mixin.js#L36-L40
not being an array and not having a .generate
function.
Event if it got through, by using:
meta: {
rule: new AclRule('*')
}
The result of .generate()
is an array of an array: [['*']]
, hence the following line: https://github.com/leonardovilarinho/vue-acl/blob/affd849636e24f00c5be6e83faa86d8d6bc9ffe8/source/checker.js#L19 also fails.
Consider the mentioned simplification.