Roles
library Roles
Library for managing addresses assigned to a Role. See RBAC.sol for example usage.
Source: rbac/Roles.sol
Reference
Functions
add
function add(Role role, address addr) internalGive an address access to this role.
- Parameters:
role- Roleaddr- address
check
function check(Role role, address addr) internal viewCheck if an address has this role // reverts.
- Parameters:
role- Roleaddr- address
has
function has(Role role, address addr) internal view returns (bool)Check if an address has this role.
- Parameters:
role- Roleaddr- address- Returns:
- bool
remove
function remove(Role role, address addr) internalRemove an address' access to this role.
- Parameters:
role- Roleaddr- address