]> git.mjollnir.org Git - moodle.git/commitdiff
accesslib: load_all_capabilities() - remember to check_enrolment_plugins()!
authormartinlanghoff <martinlanghoff>
Thu, 20 Sep 2007 03:23:12 +0000 (03:23 +0000)
committermartinlanghoff <martinlanghoff>
Thu, 20 Sep 2007 03:23:12 +0000 (03:23 +0000)
When setting up accessdata for a newly-logged-in user, call the
enrolment plugins. Thanks to Matt Clarkson for the heads up.

Affects: MDL-11180

lib/accesslib.php

index cecda1e7c0f5c78fb2504bff5636995773c661a9..15546d1373dadeef844da3fde89d0e4a04180213 100755 (executable)
@@ -1545,6 +1545,7 @@ function load_all_capabilities() {
 
     } else if (isloggedin()) {
 
+        check_enrolment_plugins($USER);
 
         $ad = get_user_access_sitewide($USER->id);