Avoid permission checking on getOrganizationNames
authorfrancescbassas <francesc@babu.cat>
Tue, 27 Nov 2018 21:02:47 +0000 (22:02 +0100)
committerGitHub <noreply@github.com>
Tue, 27 Nov 2018 21:02:47 +0000 (22:02 +0100)
[Bookkeeping Transactions Report insufficient permissions](https://lab.civicrm.org/dev/core/issues/551)

CRM/Report/Form/Contribute/Bookkeeping.php

index 8e4c25d1e3ddc6af814d04007b890892837b074b..7f64c03e58d6787ae6e26e2a143142062595cbea 100644 (file)
@@ -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',
           ),