From: martinlanghoff Date: Wed, 14 Nov 2007 22:04:37 +0000 (+0000) Subject: loginas: call check_enrolment_plugins() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bce3479cc1c28599100207844e0027f785b068c1;p=moodle.git loginas: call check_enrolment_plugins() Admins will want to see an update of the user's enrolments when they do a login-as. --- diff --git a/course/loginas.php b/course/loginas.php index 8b93bca4eb..5cd9e36273 100644 --- a/course/loginas.php +++ b/course/loginas.php @@ -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