PolicyAdmin
Inherits: RolesConsumer
Functions
onlyEmergencyOrAdminRole
Modifier that reverts if the caller does not have the emergency or admin role
modifier onlyEmergencyOrAdminRole() ;
onlyManagerOrAdminRole
Modifier that reverts if the caller does not have the manager or admin role
modifier onlyManagerOrAdminRole() ;
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() ;
onlyManagerRole
Modifier that reverts if the caller does not have the manager role
modifier onlyManagerRole() ;
_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 |
_isManager
Check if an account has the manager role
function _isManager(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 manager role, false otherwise |
Errors
NotAuthorised
error NotAuthorised();