From 6d2d91d6b742d41d9ef51fece0bf6ee6023ead65 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Tue, 6 Mar 2007 05:36:19 +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 2b173aaec6..8668589471 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; -- 2.39.5