From: skodak Date: Wed, 26 Nov 2008 19:27:40 +0000 (+0000) Subject: MDL-17372 admin reports: Added full plugin support for admin reports; added specail... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a0005f678fd552edc4690196173b0dce9cdcfa4f;p=moodle.git MDL-17372 admin reports: Added full plugin support for admin reports; added specail capability for unittest execution, minor refactoring --- diff --git a/lib/accesslib.php b/lib/accesslib.php index b3c36b8cc8..9560af3fac 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -5557,10 +5557,7 @@ function component_level_changed($cap, $comp, $contextlevel) { $compsa = explode('/', $cap->component); $compsb = explode('/', $comp); - // list of system reports - if (($compsa[0] == 'report') &&($compsb[0] == 'report')) { - return false; - } + // we are in gradebook, still if (($compsa[0] == 'gradeexport' || $compsa[0] == 'gradeimport' || $compsa[0] == 'gradereport') &&