How to add permission to each role?

In Access Control.sol, each role has member and role admin, but in a whole role based access control ,Each role should have its own permissions, so if i want to add permission to each, how do I do that?
Please give me a hint, thank you

:computer: Environment


:1234: Code to reproduce

1 Like

Hi @wangyuyue,

In AccessControl each role has its own permissions. All accounts with the same role share the same permissions that are coded in the smart contract. Rather than

See Using AccessControl

You can also see the discussion around this design in: Redesigning Access Control for the OpenZeppelin Contracts