From 4e59cc4453d1d89f7ec857ee6e50bd9788bc43d4 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Tue, 6 Mar 2007 05:31:45 +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 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;