From a3fa034070c4ca667186ff620a16a61b213d86a3 Mon Sep 17 00:00:00 2001 From: Edsel Date: Wed, 17 Feb 2016 17:34:35 +0530 Subject: [PATCH] CRM-16526 CIVI-3 Added check for delete ---------------------------------------- * CRM-16526: ACLs for Financial Types https://issues.civicrm.org/jira/browse/CRM-16526 --- api/v3/LineItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/LineItem.php b/api/v3/LineItem.php index fd44939691..987ea1028a 100644 --- a/api/v3/LineItem.php +++ b/api/v3/LineItem.php @@ -117,7 +117,7 @@ function civicrm_api3_line_item_get($params) { */ function civicrm_api3_line_item_delete($params) { if (CRM_Financial_BAO_FinancialType::isACLFinancialTypeStatus()) { - CRM_Financial_BAO_FinancialType::getAvailableFinancialTypes($types); + CRM_Financial_BAO_FinancialType::getAvailableFinancialTypes($types, CRM_Core_Action::DELETE); if (empty($params['financial_type_id'])) { $params['financial_type_id'] = civicrm_api3('LineItem', 'getvalue', array( 'id' => $params['id'], -- 2.25.1