Skip to content

DelegatedAccessControlled

DelegatedAccessControlled

Forbidden

error Forbidden()

onlyRole

modifier onlyRole(string role)

Modifier that checks that an account has a specific role on delegate. Reverts with a standardized message including the required role.

onlyAdmin

modifier onlyAdmin()

Modifier that checks that an account has an admin role on delegate. Reverts with a standardized message including the required role.

onlyManager

modifier onlyManager()

Modifier that checks that an account has a manager role on delegate. Reverts with a standardized message including the required role.

onlyDelegateAdmin

modifier onlyDelegateAdmin(address delegate)

onlyDelegateManager

modifier onlyDelegateManager(address delegate)

onlyDelegateAdminOrManager

modifier onlyDelegateAdminOrManager(address delegate)

_checkRole

function _checkRole(string role, address account) internal view

_hasRole

function _hasRole(string role, address account) internal view returns (bool)

_dac

function _dac() internal view virtual returns (contract IDelegatedAccessControl)