From 2d9a4a4ca4178d5dded64ba6baea0e5dd58813f3 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 6 Jun 2016 08:45:05 -0600 Subject: [PATCH] Report test fix --- CRM/Report/Form.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index 3c519aa727..5a5554e73e 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -625,8 +625,9 @@ class CRM_Report_Form extends CRM_Core_Form { } // Special permissions check for private instance if it's not the current contact instance - if (CRM_Report_BAO_ReportInstance::reportIsPrivate($this->_id) && - !CRM_Report_BAO_ReportInstance::contactIsOwner($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')) { $this->_instanceForm = FALSE; $this->assign('criteriaForm', FALSE); -- 2.25.1