nyambati/express-acl

Support of multiple roles

Opened this issue · 4 comments

Hi,

I'm new to this library, so might be wrong, but I see that "role" is a single value string.
I guess there no built-in solution for that but what's the best way to support multiple roles for user?

E.g. that "req.decoded.role" will be an array of roles.

Thanks!
Elad.

@eladbs I have not explored the possibility of multiple roles. If you have an idea on how this can be implemented and improve the functionality of the project please feel free raise A PR.

Hi! Has there been any update on this?

Comparing the array of permissions of user and the permissions of config.. i think that's a solution

I was wondering if something like this is supported. Is there any news or interest in this?