From: skodak Date: Fri, 17 Jul 2009 08:33:23 +0000 (+0000) Subject: MDL-19842 securing algebradebug the same way as text debug - only admins may use... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5e6d46cbd9fbb66646fbc7f260c9441c90eea525;p=moodle.git MDL-19842 securing algebradebug the same way as text debug - only admins may use it now --- diff --git a/filter/algebra/algebradebug.php b/filter/algebra/algebradebug.php index d984491d3d..7a9b9b6c01 100644 --- a/filter/algebra/algebradebug.php +++ b/filter/algebra/algebradebug.php @@ -14,6 +14,9 @@ require_once($CFG->libdir.'/filelib.php'); require_once($CFG->dirroot.'/filter/tex/lib.php'); + require_login(); + require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM)); + $query = urldecode($_SERVER['QUERY_STRING']); if ($query) {