enrol/paypal: mark the contextpath as dirty on unenrolment

so the unenrolment is effective immediately.
This commit is contained in:
martinlanghoff
2007-09-19 07:12:22 +00:00
parent f055618837
commit d32dd61154
+2
View File
@@ -94,6 +94,8 @@
if ($data->payment_status != "Completed" and $data->payment_status != "Pending") {
role_unassign(0, $data->userid, 0, $context->id);
// force accessinfo refresh for users visiting this context...
mark_context_dirty($context->path);
email_paypal_error_to_admin("Status not completed or pending. User unenrolled from course", $data);
die;
}