From: eileen Date: Thu, 23 Jun 2016 03:03:52 +0000 (+1200) Subject: CRM-17310 follow up fix - report criteria not showing at urls like civicrm/report... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=766eb4ba40483ca22c69474334e45db496a62274;p=civicrm-core.git CRM-17310 follow up fix - report criteria not showing at urls like civicrm/report/contact/summary?reset=1 --- 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')) {