Skip to content

Commit

Permalink
accesslib: has_capability() - useful debugging bit...
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlanghoff committed Sep 19, 2007
1 parent 018d4b5 commit 13a7947
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/accesslib.php
Expand Up @@ -399,6 +399,10 @@ function has_capability($capability, $context=NULL, $userid=NULL, $doanything=tr
load_all_capabilities();
}


// divulge how many times we are called
//// error_log("has_capability: id:{$context->id} path:{$context->path} userid:$userid cap:$capability");

if ($USER->id === $userid) {
//
// For the logged in user, we have $USER->access
Expand Down

0 comments on commit 13a7947

Please sign in to comment.