Skip to content

IPermissionCondition โ€‹

Interface ยท src/common/permission/condition/IPermissionCondition.sol

Explained in: Permission conditions

Author: Aragon X - 2021-2023

An interface to be implemented to support custom permission logic.

Dev: To attach a condition to a permission, the grantWithCondition function must be used and refer to the implementing contract's address with the condition argument.

security-contact: sirt@aragon.org

Functions โ€‹

isGranted โ€‹

solidity
function isGranted(
    address _where,
    address _who,
    bytes32 _permissionId,
    bytes _data
) external view returns (bool isPermitted)

Selector: 0x2675fdd0

Checks if a call is permitted.

ParameterTypeDescription
_whereaddressThe address of the target contract.
_whoaddressThe address (EOA or contract) for which the permissions are checked.
_permissionIdbytes32The permission identifier.
_databytesOptional data passed to the PermissionCondition implementation.
ReturnsTypeDescription
isPermittedboolReturns true if the call is permitted.