]> git.mjollnir.org Git - moodle.git/commitdiff
accesslib: has_capability() - useful debugging bit...
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:03:34 +0000 (07:03 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:03:34 +0000 (07:03 +0000)
lib/accesslib.php

index ee029b5be0f61ae508f688dc3d8890b4322183f4..a2fc5e49550e23b19266fa93a02354e4b619352c 100755 (executable)
@@ -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