From b3ebb9802e475eb73f0ab1450cc598bf480d1ccc Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Wed, 14 Nov 2007 23:35:15 +0000 Subject: [PATCH] MDL-9399 loginas: call check_enrolment_plugins() Admins will want to see an update of the user's enrolments when they do a login-as. --- course/loginas.php | 1 + 1 file changed, 1 insertion(+) diff --git a/course/loginas.php b/course/loginas.php index 8b93bca4eb8..5cd9e36273d 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