From a0005f678fd552edc4690196173b0dce9cdcfa4f Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 26 Nov 2008 19:27:40 +0000 Subject: [PATCH] MDL-17372 admin reports: Added full plugin support for admin reports; added specail capability for unittest execution, minor refactoring --- lib/accesslib.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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') && -- 2.39.5