express-acl icon indicating copy to clipboard operation
express-acl copied to clipboard

Support of multiple roles

Open eladbs opened this issue 7 years ago • 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 avatar Jun 07 '18 13:06 eladbs

@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.

nyambati avatar Jul 20 '18 12:07 nyambati

Hi! Has there been any update on this?

nattri07 avatar Jan 26 '19 15:01 nattri07

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

phvictorino avatar May 20 '19 19:05 phvictorino

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

ivanwagner avatar Jan 18 '21 08:01 ivanwagner