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

Wildcards not supported #17

Closed anony253 closed 4 years ago

anony253 commented 4 years ago

I assume this is not compatible with permission wildcards, as I can't get it to work

using: {{ this.$laravel.getPermissions() }} results in [ "*.view", "*.create" ] but v-can="'users.create'" doesn't trigger

Ref: Spatie wildcard permissions docs

Could you please add support for wildcards ?

williamcruzme commented 4 years ago

Great idea, I'll work on it!

williamcruzme commented 4 years ago

Resolved in v2.0.0! 🎉