Skip to main content

auth

error DaoUnauthorized

Thrown if a call is unauthorized in the associated DAO.

error DaoUnauthorized(address dao, address where, address who, bytes32 permissionId)
InputTypeDescription
daoaddressThe associated DAO.
whereaddressThe context in which the authorization reverted.
whoaddressThe address (EOA or contract) missing the permission.
permissionIdbytes32The permission identifier.

internal function _auth

A free function checking if a caller is granted permissions on a target contract via a permission identifier that redirects the approval to a PermissionCondition if this was specified in the setup.

function _auth(contract IDAO _dao, address _where, address _who, bytes32 _permissionId, bytes _data) internal view
InputTypeDescription
_daocontract IDAO
_whereaddressThe address of the target contract for which who receives permission.
_whoaddressThe address (EOA or contract) owning the permission.
_permissionIdbytes32The permission identifier.
_databytesThe optional data passed to the PermissionCondition registered.
© 2024