psecio / gatekeeper

Gatekeeper: An Authentication & Authorization Library
366 stars 23 forks source link

Method to check if user inherits permission (from group) #46

Open ffaen opened 8 years ago

ffaen commented 8 years ago

Not so much an issue as a suggestion, it would be nice if there was a method to check if the user inherits a specific permission via groups its assigned to.

Currently I can't see any function that does that, specifically mentioning in the docs that:

You can check the user's immediate permissions (not the ones on groups they belong to) with the hasPermission method

But no information on how to check if the user gets a permission from a group.