_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
) viewA 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.
| Parameter | Type | Description |
|---|---|---|
_dao | IDAO | |
_where | address | The address of the target contract for which who receives permission. |
_who | address | The address (EOA or contract) owning the permission. |
_permissionId | bytes32 | The permission identifier. |
_data | bytes | The optional data passed to the PermissionCondition registered. |