Closed felocru closed 2 years ago
@felocru did you manage to come up with a solution? If I'm not misunderstood the documentation, the snippet:
<button v-role:admin>Create Post</button>
will show the button only to an admin user. But that doesn't work, I'm in the same situation as you reading the documentation carefully. The directives exist, but the rule is not being applied.
Hi, thanks for this great tool. None of the directives I put in are working. I put some example:
My rule:
I put a debugger inside the rule to see if execution stops, but to no avail. However, if it stops when I do:
this.$acl.role("operador")
orthis.$can('operador')
Am I missing something to configure?