Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-7968 reports section of admin tree controled by reports capabilit…

…y not site config
  • Loading branch information...
commit 8a7f4c11f9b5b640b8db9a7d211a071c8075e3d8 1 parent a92741f
jmg324 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  admin/settings/top.php
View
2  admin/settings/top.php
@@ -43,7 +43,7 @@
if ($reportname[1] == '[') {
$reportname = get_string($plugin, 'admin');
}
- $ADMIN->add('reports', new admin_externalpage('report'.$plugin, $reportname, "$CFG->wwwroot/$CFG->admin/report/$plugin/index.php"));
+ $ADMIN->add('reports', new admin_externalpage('report'.$plugin, $reportname, "$CFG->wwwroot/$CFG->admin/report/$plugin/index.php",'moodle/site:viewreports'));
}
$ADMIN->add('root', new admin_category('misc', get_string('miscellaneous')));
Please sign in to comment.
Something went wrong with that request. Please try again.