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

This commit is contained in:
nicolasconnault
2007-03-06 05:29:00 +00:00
parent 92d3d576fb
commit 2fd2fdbdb9
+1 -1
View File
@@ -305,7 +305,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;