Merge branch 'MDL-61260_master' of git://github.com/markn86/moodle
This commit is contained in:
+3
-1
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user