mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX: Only list reports in admin/reports that you can actually view (from r95885) (from r98177)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@105828 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0389e784b2
commit
d1246827d5
@ -64,7 +64,11 @@ class ReportAdmin extends LeftAndMain {
|
||||
* @return DataObjectSet
|
||||
*/
|
||||
public function Reports() {
|
||||
return new DataObjectSet(SS_Report::get_reports('ReportAdmin'));
|
||||
$output = new DataObjectSet();
|
||||
foreach(SS_Report::get_reports('ReportAdmin') as $report) {
|
||||
if($report->canView()) $output->push($report);
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user