From 2fd2fdbdb9e73699b4c6e81706f37277f5bb6ae2 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Tue, 6 Mar 2007 05:29:00 +0000 Subject: [PATCH] MDL-8771 - Restricted has_capability() sanity checks to DEVELOPER debug mode --- lib/accesslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;