williamcruzme / vue-gates

🔒 A Vue.js & Nuxt.js plugin that allows you to use roles and permissions in your components or DOM elements, also compatible as middleware and methods.
https://williamcruzme.github.io/vue-gates/
MIT License
264 stars 31 forks source link

Bug to check similar permissions #36

Closed luilliarcec closed 3 years ago

luilliarcec commented 3 years ago

When I have a permission "security.create.role" and I check with the directivev-can or v-permission with the name "security.create.roles" or "security.create.roless", it is validated by true, when it should be false, since such permission does not exist.

williamcruzme commented 3 years ago

Hey @luilliarcec, fixed!

https://github.com/williamcruzme/vue-gates/releases/tag/v2.1.2