]> git.mjollnir.org Git - moodle.git/commitdiff
accesslib: load_all_capabilities() must clear USER->mycourses
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:17:08 +0000 (07:17 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:17:08 +0000 (07:17 +0000)
lib/accesslib.php

index 416e7c9a50fbb2d2e594305bae066ce8a65ee3fc..bb5fe5385154621b1efe2011eccfde20c2d8ca47 100755 (executable)
@@ -1656,7 +1656,13 @@ function load_all_capabilities() {
             $USER->access['ra'][$base] = array($roleid);
         }
     }
+
+    // Timestamp to read 
+    // dirty context timestamps
     $USER->access['time'] = time();
+
+    // Clear to force a refresh
+    unset($USER->mycourses);
 }
 
 /**