return $showItem;
}
}
+ // CRM-17310 my reports allow people with access own reports to see the report if it is theirs.
+ elseif ($key == 'access own private reports') {
+ // Special permission processing for private reports.
+ $report_url = parse_url(ltrim($url, '/'));
+ $instance_id = CRM_Report_Utils_Report::getInstanceID($report_url['path']);
+ $hasPermission = $showItem = CRM_Report_BAO_ReportInstance::contactIsOwner($instance_id);
+ }
else {
$hasPermission = TRUE;
}