mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
MDL-11040: get_complete_user_data doesn't get the complete user data. Replace with get_record to bring over the user's description.
This commit is contained in:
parent
d5c60087a1
commit
b263e3b721
@ -89,7 +89,7 @@ class auth_plugin_mnet extends auth_plugin_base {
|
||||
}
|
||||
|
||||
// session okay, try getting the user
|
||||
if (!$user = get_complete_user_data('id', $mnet_session->userid)) {
|
||||
if (!$user = get_record('user', 'id', $mnet_session->userid)) {
|
||||
echo mnet_server_fault(3, get_string('authfail_usermismatch', 'mnet'));
|
||||
exit;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user