Permalink
Browse files

MDL-8771 - Restricted has_capability() sanity checks to DEVELOPER deb…

…ug mode
  • Loading branch information...
nicolasconnault
nicolasconnault committed Mar 6, 2007
1 parent 92d3d57 commit 2fd2fdbdb9e73699b4c6e81706f37277f5bb6ae2
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/accesslib.php
View
@@ -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;

0 comments on commit 2fd2fdb

Please sign in to comment.