From 458b173b3dcdefdb379df6abc0bc2da413fc51b0 Mon Sep 17 00:00:00 2001 From: francescbassas Date: Tue, 27 Nov 2018 22:02:47 +0100 Subject: [PATCH] Avoid permission checking on getOrganizationNames [Bookkeeping Transactions Report insufficient permissions](https://lab.civicrm.org/dev/core/issues/551) --- CRM/Report/Form/Contribute/Bookkeeping.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Report/Form/Contribute/Bookkeeping.php b/CRM/Report/Form/Contribute/Bookkeeping.php index 8e4c25d1e3..7f64c03e58 100644 --- a/CRM/Report/Form/Contribute/Bookkeeping.php +++ b/CRM/Report/Form/Contribute/Bookkeeping.php @@ -211,7 +211,7 @@ class CRM_Report_Form_Contribute_Bookkeeping extends CRM_Report_Form { 'title' => ts('Financial Account Owner - Debit'), 'operatorType' => CRM_Report_Form::OP_SELECT, 'type' => CRM_Utils_Type::T_INT, - 'options' => array('' => '- Select Organization -') + CRM_Financial_BAO_FinancialAccount::getOrganizationNames(), + 'options' => array('' => '- Select Organization -') + CRM_Financial_BAO_FinancialAccount::getOrganizationNames(FALSE), 'name' => 'contact_id', 'alias' => 'financial_account_civireport_debit', ), @@ -227,7 +227,7 @@ class CRM_Report_Form_Contribute_Bookkeeping extends CRM_Report_Form { 'title' => ts('Financial Account Owner - Credit'), 'operatorType' => CRM_Report_Form::OP_SELECT, 'type' => CRM_Utils_Type::T_INT, - 'options' => array('' => '- Select Organization -') + CRM_Financial_BAO_FinancialAccount::getOrganizationNames(), + 'options' => array('' => '- Select Organization -') + CRM_Financial_BAO_FinancialAccount::getOrganizationNames(FALSE), 'name' => 'contact_id', 'alias' => 'financial_account_civireport_credit', ), -- 2.25.1