diff --git a/lib/accesslib.php b/lib/accesslib.php index 2d469f8c046..55c96b1343b 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -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;