leonardovilarinho / vue-acl

Access Control List plugin for VueJS 2.0
375 stars 76 forks source link

Allow change to check new generated acl rule #89

Open ideepblue opened 4 years ago

ideepblue commented 4 years ago

Hi @leonardovilarinho

I found the '' asterisk rule doesn't work. It will raise '[vue-acl] you have invalid rules' in checker.js, however `['']works. Please check theasterisk-invalidandasterisk-valid` in the example.

I also made changes to allow $acl.change() to accept AclRule('key').generate() and AclRule('key') directly. Please see the code in example/src/App.vue as well.