CRM-17310 follow up fix - report criteria not showing at urls like civicrm/report...
authoreileen <emcnaughton@wikimedia.org>
Thu, 23 Jun 2016 03:03:52 +0000 (15:03 +1200)
committereileen <emcnaughton@wikimedia.org>
Thu, 23 Jun 2016 03:03:52 +0000 (15:03 +1200)
CRM/Report/Form.php

index 698edb7b9e0ca40636ee20afcd02e2c16f4d339b..f3215dd9e6d99d26e96c7465470dc7695bb1d913 100644 (file)
@@ -625,7 +625,7 @@ class CRM_Report_Form extends CRM_Core_Form {
     }
 
     // Special permissions check for private instance if it's not the current contact instance
-    if (!$this->_id ||
+    if ($this->_id &&
       (CRM_Report_BAO_ReportInstance::reportIsPrivate($this->_id) &&
       !CRM_Report_BAO_ReportInstance::contactIsOwner($this->_id))) {
       if (!CRM_Core_Permission::check('access all private reports')) {