From f9c468152074022984f64a177361a9e048bddac8 Mon Sep 17 00:00:00 2001 From: jmg324 Date: Fri, 6 Jun 2008 15:35:18 +0000 Subject: [PATCH] MDL-7968 reports section of admin tree controled by reports capability not site config --- admin/settings/top.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/settings/top.php b/admin/settings/top.php index 8405824ab2bda..32f524c8e573a 100644 --- a/admin/settings/top.php +++ b/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')));