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.

Home Page:https://williamcruzme.github.io/vue-gates/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wildcards not supported

anony253 opened this issue · comments

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 ?

Great idea, I'll work on it!

Resolved in v2.0.0! 🎉