]> git.mjollnir.org Git - moodle.git/commitdiff
enrol/paypal: mark the contextpath as dirty on unenrolment
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:12:22 +0000 (07:12 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:12:22 +0000 (07:12 +0000)
so the unenrolment is effective immediately.

enrol/paypal/ipn.php

index e88367e272410304411102f2a8f1038df660ff2c..a4957754a23da8ca5ad69b027f10efeba3a317d1 100644 (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;
             }