From: jmg324 Date: Fri, 6 Jun 2008 15:35:18 +0000 (+0000) Subject: MDL-7968 reports section of admin tree controled by reports capability not site config X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f9c468152074022984f64a177361a9e048bddac8;p=moodle.git MDL-7968 reports section of admin tree controled by reports capability not site config --- diff --git a/admin/settings/top.php b/admin/settings/top.php index 8405824ab2..32f524c8e5 100644 --- a/admin/settings/top.php +++ b/admin/settings/top.php @@ -43,7 +43,7 @@ foreach (get_list_of_plugins($CFG->admin.'/report') as $plugin) { 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')));