Skip to main content

requirePermission

Contract: JBOperatable​‌

Only allows the speficied account or an operator of the account to proceed.

Definition

modifier requirePermission(
address _account,
uint256 _domain,
uint256 _permissionIndex
) { ... }
  • Arguments:
    • _projectId is the ID of the project.
  • The modifier function can be used by any internal function.

Body

  1. Make sure the message's sender fulfills the criteria.

    _requirePermission(_account, _domain, _permissionIndex);

    Internal references:

  2. Continue the rest of the function.

    _;