Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…y not site config
  • Loading branch information...
commit f9c468152074022984f64a177361a9e048bddac8 1 parent aa17ea5
jmg324 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  admin/settings/top.php
View
2  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')));
Please sign in to comment.
Something went wrong with that request. Please try again.