adonis-acl
adonis-acl copied to clipboard
Use ACL Methods in Controller
is there a way of checking the user roles inside the controller ?
I know that I can get the roles from a user with user.getRoles but methods like the one below would look nicer
user.is(role.slug){
//do stuff
}