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();

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

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

Errors

NotAuthorised

error NotAuthorised();