From: CiviCRM Date: Thu, 18 Dec 2014 11:53:02 +0000 (+0530) Subject: CRM-15741 - CiviContribute - Don't crash when an ACL-limited user runs Contribution... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=989466cec580bb1f5cd9dcca97cf7eb5fc393c79;p=civicrm-core.git CRM-15741 - CiviContribute - Don't crash when an ACL-limited user runs Contribution Summary report --- diff --git a/CRM/Report/Form/Contribute/Summary.php b/CRM/Report/Form/Contribute/Summary.php index ef4023d85a..6d7fbfbc24 100644 --- a/CRM/Report/Form/Contribute/Summary.php +++ b/CRM/Report/Form/Contribute/Summary.php @@ -442,7 +442,7 @@ class CRM_Report_Form_Contribute_Summary extends CRM_Report_Form { } $this->_from = " - FROM civicrm_contact {$this->_aliases['civicrm_contact']} + FROM civicrm_contact {$this->_aliases['civicrm_contact']} {$this->_aclFrom} INNER JOIN civicrm_contribution {$this->_aliases['civicrm_contribution']} ON {$this->_aliases['civicrm_contact']}.id = {$this->_aliases['civicrm_contribution']}.contact_id AND {$this->_aliases['civicrm_contribution']}.is_test = 0