Skip to main content

PolicyAdmin

Git Source

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

NameTypeDescription
account_addressThe account to check

Returns

NameTypeDescription
<none>booltrue 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

NameTypeDescription
account_addressThe account to check

Returns

NameTypeDescription
<none>booltrue 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

NameTypeDescription
account_addressThe account to check

Returns

NameTypeDescription
<none>booltrue if the account has the manager role, false otherwise

Errors​

NotAuthorised​

error NotAuthorised();