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
263 stars 31 forks source link

It is not possible to differentiate between the permissions that contain "-" #32

Closed eslamoo closed 3 years ago

eslamoo commented 3 years ago

If we have two permissions that partially contains same string but they totally different permissions the package cant differentiate between them, For example: we have : v-permission="'admin.dashboard.overview.ranking-data.no-of-visits'" and v-permission="'admin.dashboard.overview.ranking-data.no-of-visits-per-customer'"

These two permissions sounds the same to the Vue-Gates.

williamcruzme commented 3 years ago

Hey @eslamoo, fixed!

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