MDL-8771 - Restricted has_capability() sanity checks to DEVELOPER debug mode
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user