mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
loginas: call check_enrolment_plugins()
Admins will want to see an update of the user's enrolments when they do a login-as.
This commit is contained in:
parent
be41678c5e
commit
bce3479cc1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user