requirePermissionAllowingOverride
Contract: JBOperatable
- Step by step
 - Code
 - Bug bounty
 
Only allows the speficied account, an operator of the account to proceed, or a truthy override flag.
Definition
modifier requirePermissionAllowingOverride(
  address _account,
  uint256 _domain,
  uint256 _permissionIndex,
  bool _override
) { ... }
- Arguments:
_accountis the account to check for._domainis the domain namespace to look for an operator within._permissionIndexis the index of the permission to check for._overrideis a condition to force allowance for.
 - The modifier function can be used by any internal function.
 
Body
- 
Make sure the message's sender fulfills the criteria.
_requirePermissionAllowingOverride(_account, _domain, _permissionIndex, _override);Internal references:
 - 
Continue the rest of the function.
_; 
/**
  @notice
  Only allows the speficied account, an operator of the account to proceed, or a truthy override flag.
  @param _account The account to check for.
  @param _domain The domain namespace to look for an operator within.
  @param _permissionIndex The index of the permission to check for.
  @param _override A condition to force allowance for.
*/
modifier requirePermissionAllowingOverride(
  address _account,
  uint256 _domain,
  uint256 _permissionIndex,
  bool _override
) {
  _requirePermissionAllowingOverride(_account, _domain, _permissionIndex, _override);
  _;
}
| Category | Description | Reward | 
|---|---|---|
| Optimization | Help make this operation more efficient. | 0.5ETH | 
| Low severity | Identify a vulnerability in this operation that could lead to an inconvenience for a user of the protocol or for a protocol developer. | 1ETH | 
| High severity | Identify a vulnerability in this operation that could lead to data corruption or loss of funds. | 5+ETH |