]> git.mjollnir.org Git - moodle.git/commitdiff
course/unenrol codepaths mark the context dirty - bugfix
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:12:43 +0000 (07:12 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:12:43 +0000 (07:12 +0000)
Oops. one if() branch was missing the mark_context_dirty(). Fixed.

course/unenrol.php

index 356c8f94b87200e4792c1e9378f2df168ee2c592..46336531238c9b2c7698581d075ac8cc76182801 100644 (file)
@@ -54,6 +54,9 @@
             if (! role_unassign(0, $USER->id, 0, $context->id)) {
                 error("An error occurred while trying to unenrol you.");
             }
+
+            // force accessinfo refresh for users visiting this context...
+            mark_context_dirty($context->path);
             add_to_log($course->id, 'course', 'unenrol', "view.php?id=$course->id", $USER->id);
 
             redirect($CFG->wwwroot);