accesslib: has_capability() - useful debugging bit...

This commit is contained in:
martinlanghoff 2007-09-19 07:03:34 +00:00
parent 018d4b52b7
commit 13a794757e

View File

@ -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