From 766eb4ba40483ca22c69474334e45db496a62274 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 23 Jun 2016 15:03:52 +1200 Subject: [PATCH] CRM-17310 follow up fix - report criteria not showing at urls like civicrm/report/contact/summary?reset=1 --- CRM/Report/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index 698edb7b9e..f3215dd9e6 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -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')) { -- 2.25.1