Is it possible to get a list of the permissions of a given token?
Or check if a token has a certain set of permissions?
In one of my actions I would like to warn that the provided token is lacking a specific permission. The errors currently issued by just trying to do something and failing are not always easy to understand. If I could check the permission before failing I could issue a helpful warning like
the provided token is missing the xxx permission.