From: eileen Date: Mon, 6 Jun 2016 14:45:05 +0000 (-0600) Subject: Report test fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2d9a4a4ca4178d5dded64ba6baea0e5dd58813f3;p=civicrm-core.git Report test fix --- 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);