]> git.mjollnir.org Git - moodle.git/commitdiff
loginas: call check_enrolment_plugins()
authormartinlanghoff <martinlanghoff>
Wed, 14 Nov 2007 22:04:37 +0000 (22:04 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 14 Nov 2007 22:04:37 +0000 (22:04 +0000)
Admins will want to see an update of the user's enrolments when
they do a login-as.

course/loginas.php

index 8b93bca4eb819d3d184761964550755a0b889241..5cd9e36273ded94a13ebfe891028f3f38398daea 100644 (file)
@@ -90,6 +90,7 @@
     $USER = get_complete_user_data('id', $userid);
     $USER->realuser = $olduserid;
     $USER->loginascontext = $context;
+    check_enrolment_plugins($USER);
     load_all_capabilities();   // reload capabilities
 
     if (isset($SESSION->currentgroup)) {    // Remember current cache setting for later