]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8771 - Restricted has_capability() sanity checks to DEVELOPER debug mode
authornicolasconnault <nicolasconnault>
Tue, 6 Mar 2007 05:36:19 +0000 (05:36 +0000)
committernicolasconnault <nicolasconnault>
Tue, 6 Mar 2007 05:36:19 +0000 (05:36 +0000)
lib/accesslib.php

index 2b173aaec6225aeab15ceee7c018873c4e8266d4..8668589471be7f523eba528e70e8a5581698e946 100755 (executable)
@@ -394,7 +394,7 @@ function has_capability($capability, $context=NULL, $userid=NULL, $doanything=tr
     }
 
 /// Some sanity checks
-    if (debugging()) {
+    if (debugging('',DEBUG_DEVELOPER)) {
         if ($capability == 'debugcache') {
             print_object($capcache);
             return true;