MDL-8771 - Restricted has_capability() sanity checks to DEVELOPER debug mode

This commit is contained in:
nicolasconnault
2007-03-06 05:31:45 +00:00
parent 4a6638f689
commit 4e59cc4453
+1 -1
View File
@@ -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;