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

superRole not working #29

Closed wimil closed 3 years ago

wimil commented 3 years ago

I have added the superRole setting, something strange happens with the v-permission directive it works, but with the $ gates.hasPermission() method it does not recognize the superRole.

darkons commented 3 years ago

Same issue. superRole works fine with vue directives but not with directives as functions.

luckasdc commented 3 years ago

Same here..

williamcruzme commented 3 years ago

You're right! Fixing...

disjointed commented 3 years ago

Any news on this issue?

williamcruzme commented 3 years ago

Hey @disjointed @luckasdc @wimil @darkons, fixed!

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