Merge branch 'MDL-61260_master' of git://github.com/markn86/moodle

This commit is contained in:
David Monllao
2018-02-01 10:33:15 +08:00
committed by Jake Dallimore
+3 -1
View File
@@ -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'));