Skip to content

Commit

Permalink
MDL-7968 reports section of admin tree controled by reports capabilit…
Browse files Browse the repository at this point in the history
…y not site config
  • Loading branch information
jmg324 committed Jun 6, 2008
1 parent aa17ea5 commit f9c4681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/settings/top.php
Expand Up @@ -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')));
Expand Down

0 comments on commit f9c4681

Please sign in to comment.