CRM-15741 - CiviContribute - Don't crash when an ACL-limited user runs Contribution...
authorCiviCRM <info@civicrm.org>
Thu, 18 Dec 2014 11:53:02 +0000 (17:23 +0530)
committerCiviCRM <info@civicrm.org>
Thu, 18 Dec 2014 11:53:02 +0000 (17:23 +0530)
CRM/Report/Form/Contribute/Summary.php

index ef4023d85a6a7fdd1937e18aa7d1bcc46ed03653..6d7fbfbc24822a70cd89f35945a9e4d69eb7b130 100644 (file)
@@ -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