Permalink
Browse files

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

…y not site config
  • Loading branch information...
1 parent a92741f commit 8a7f4c11f9b5b640b8db9a7d211a071c8075e3d8 jmg324 committed Jun 6, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/settings/top.php
View
@@ -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')));

0 comments on commit 8a7f4c1

Please sign in to comment.