mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-61260 auth_ldap: require /user/profile/lib.php file
This commit is contained in:
parent
a4f914b54d
commit
029ec1edfe
@ -1083,7 +1083,9 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
*
|
||||
*/
|
||||
function user_update($olduser, $newuser) {
|
||||
global $USER;
|
||||
global $CFG;
|
||||
|
||||
require_once($CFG->dirroot . '/user/profile/lib.php');
|
||||
|
||||
if (isset($olduser->username) and isset($newuser->username) and $olduser->username != $newuser->username) {
|
||||
error_log($this->errorlogtag.get_string('renamingnotallowed', 'auth_ldap'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user