From f0556188371d6b2596a48af5643576aaacb8da71 Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Wed, 19 Sep 2007 07:12:10 +0000 Subject: [PATCH] enrol/mnet: mark context as dirty after unenrol So the unenrolment is effective immediately. --- enrol/mnet/enrol.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/enrol/mnet/enrol.php b/enrol/mnet/enrol.php index 4cffd613de..5b6f19212c 100644 --- a/enrol/mnet/enrol.php +++ b/enrol/mnet/enrol.php @@ -362,7 +362,10 @@ class enrolment_plugin_mnet { // Are we a *real* user or the shady MNET Daemon? // require_capability('moodle/role:assign', $context, NULL, false); - if (! role_unassign(0, $userrecord->id, 0, $context->id)) { + if (role_unassign(0, $userrecord->id, 0, $context->id)) { + // force accessinfo refresh for users visiting this context... + mark_context_dirty($context->path); + } else { error("An error occurred while trying to unenrol that person."); } -- 2.39.5