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