From 3d3def3a4e6290c45849243ae72ab1e6aee999ba Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Wed, 19 Sep 2007 07:12:43 +0000 Subject: [PATCH] course/unenrol codepaths mark the context dirty - bugfix Oops. one if() branch was missing the mark_context_dirty(). Fixed. --- course/unenrol.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/course/unenrol.php b/course/unenrol.php index 356c8f94b8..4633653123 100644 --- a/course/unenrol.php +++ b/course/unenrol.php @@ -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); -- 2.39.5