Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Support of multiple roles #110

Open
eladbs opened this issue Jun 7, 2018 · 4 comments
Open

Support of multiple roles #110

eladbs opened this issue Jun 7, 2018 · 4 comments

Comments

@eladbs
Copy link

eladbs commented Jun 7, 2018

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.

@nyambati
Copy link
Owner

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

@nattri07
Copy link

Hi! Has there been any update on this?

@phvictorino
Copy link

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

@ivanwagner
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants