Skip to content

Get roles and permissions for specific guard ('api') #726

Answered by Mohammad-Alavi
davidreyg asked this question in Q&A
Discussion options

You must be logged in to vote

This Actions in not implemented by default. You can create a new Action and just return the results based on api and web guards (maybe passed in by the user in the request or just the current use guard) or you update GetUserPermissionsAction.

There is an activeGuard() helper method that you can use to get the current logged in user guard.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Mohammad-Alavi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants