-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce array of roleIds #303
Comments
Hi Alex. Yes, an array would allow several roles to be granted access to a function, but for this case I just needed to check membership to one role from |
Hey Alberto, I proposed how this might be done here. Let me know your thoughts |
That's a very well-written article, and interesting solution, congratulations. There are two solutions to creating dynamic permissions. You can either leave the roles static and assign users to groups, which is what would happen with modifiers like So far, I've been able to use RBAC.sol (the precursor to I wonder if the extra complexity is needed or not. If you come across a real world example where your solution was the best option it would make for a very interesting article. I like your articles a lot, keep it up 👍 |
contracts/contracts/access/Hierarchy.sol
Line 19 in 4c4acb1
using an array instead of a single role would allow multiple roles to be granted access to a function.
The text was updated successfully, but these errors were encountered: