CRM-17310 Add my reports functionality
[civicrm-core.git] / CRM / Report / Form.php
index d1ba8f6bd30282ac60c60668bec659a24ccfe967..aeb5720d2df77267ffd7d3f2d15b2c331220057c 100644 (file)
@@ -1331,7 +1331,10 @@ class CRM_Report_Form extends CRM_Core_Form {
         }
       }
     }
-    if (!empty($this->_options)) {
+    if (!empty($this->_options) &&
+        (!$this->_id
+          || ($this->_id && CRM_Report_BAO_ReportInstance::contactCanAdministerReport($this->_id)))
+    ) {
       $this->tabs['ReportOptions'] = array(
         'title' => ts('Display Options'),
         'tpl' => 'ReportOptions',