mirror of
https://github.com/moodle/moodle.git
synced 2025-03-17 14:10:08 +01:00
accesslib: has_capability() - useful debugging bit...
This commit is contained in:
parent
018d4b52b7
commit
13a794757e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user