PolicyAdmin
Inherits: RolesConsumer
Functions
onlyEmergencyOrAdminRole
Modifier that reverts if the caller does not have the emergency or admin role
modifier onlyEmergencyOrAdminRole();
onlyAdminRole
Modifier that reverts if the caller does not have the admin role
modifier onlyAdminRole();
onlyEmergencyRole
Modifier that reverts if the caller does not have the emergency role
modifier onlyEmergencyRole();
_isAdmin
Check if an account has the admin role
function _isAdmin(address account_) internal view returns (bool);
Parameters
Name | Type | Description |
---|---|---|
account_ | address | The account to check |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | true if the account has the admin role, false otherwise |
_isEmergency
Check if an account has the emergency role
function _isEmergency(address account_) internal view returns (bool);
Parameters
Name | Type | Description |
---|---|---|
account_ | address | The account to check |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | true if the account has the emergency role, false otherwise |
Errors
NotAuthorised
error NotAuthorised();