Permalink
Browse files

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

…y not site config
  • Loading branch information...
1 parent aa17ea5 commit f9c468152074022984f64a177361a9e048bddac8 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 f9c4681

Please sign in to comment.