toymachiner62 / hapi-authorization

ACL plugin for hapijs
MIT License
80 stars 25 forks source link

Multiple roles per user #5

Closed okjulian closed 9 years ago

okjulian commented 9 years ago

Hi there! Quick question: Is there a way to support multiple roles per user? If there is not, could you give me some pointers in order to implement that functionality? I would be happy to contribute.

Cheers!

toymachiner62 commented 9 years ago

You should be able to set multiple roles for a user already and when using hapi-authorization it should check to see that any of the roles a user has are in the authorized roles.

If this is not the case please let me know.