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

This commit is contained in:
nicolasconnault
2007-03-06 05:36:19 +00:00
parent dfe38a47d4
commit 6d2d91d6b7
+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;