Skip to content

_auth ​

Function · src/common/permission/auth/auth.sol

Explained in: Authorizing against a DAO

solidity
function _auth(
    IDAO _dao,
    address _where,
    address _who,
    bytes32 _permissionId,
    bytes calldata _data
) view

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.

ParameterTypeDescription
_daoIDAO
_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.