diff --git a/annualgrantbudgets.php b/annualgrantbudgets.php index 0f8c110..086dfd2 100644 --- a/annualgrantbudgets.php +++ b/annualgrantbudgets.php @@ -238,3 +238,9 @@ function annualgrantbudgets_civicrm_validateForm($formName, &$fields, &$files, & $errors = array_merge($errors, $budgetErrors); } } + +function annualgrantbudgets_civicrm_alterAPIPermissions($entity, $action, &$params, &$permissions) { + // Editing the budget should be possible with just "Access CiviGrant". + $permissions['grant_budget']['create'] = array('access CiviGrant'); + $permissions['grant_budget']['update'] = array('access CiviGrant'); +}