Merge branch 'MDL-61260_33' of git://github.com/markn86/moodle into MOODLE_33_STABLE

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