]> git.mjollnir.org Git - moodle.git/commitdiff
accesslib:reload_all_capabilities() - force a reload of mycourses
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:12:33 +0000 (07:12 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:12:33 +0000 (07:12 +0000)
unset $USER->mycourses to force a reload of mycourses too.

lib/accesslib.php

index 481947b64d61fd280dae0ec4d53e56eca630763a..5cd35f19a6d2605439eea9d417d9a665941e4197 100755 (executable)
@@ -1596,6 +1596,7 @@ function reload_all_capabilities() {
     }
 
     unset($USER->access);
+    unset($USER->mycourses);
     
     load_all_capabilities();