course/unenrol codepaths mark the context dirty - bugfix

Oops. one if() branch was missing the mark_context_dirty(). Fixed.
This commit is contained in:
martinlanghoff
2007-09-19 07:12:43 +00:00
parent 54f9d9aee7
commit 3d3def3a4e
+3
View 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);