Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ACL Methods in Controller #37

Open
popovicieduard opened this issue Mar 17, 2020 · 0 comments
Open

Use ACL Methods in Controller #37

popovicieduard opened this issue Mar 17, 2020 · 0 comments

Comments

@popovicieduard
Copy link

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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant