OptimalBits / node_acl

Access control lists for node applications
2.62k stars 369 forks source link

Testing role permissions, not user #254

Open cabrinoob opened 6 years ago

cabrinoob commented 6 years ago

Hi, is it possible to just test the role permissions, not the user ? I'd like to use this to set a role (or a list of roles) in a JWT token. In the payload of the token I just have a roles property.

josencv commented 6 years ago

This can be done with areAnyRolesAllowed