Skip to content

Commit

Permalink
Merge branch 'MDL-61260_master' of git://github.com/markn86/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao authored and snake committed Feb 1, 2018
2 parents 915140b + 029ec1e commit 237bc01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion auth/ldap/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,9 @@ private function is_role($username, $role) {
*
*/
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'));
Expand Down

0 comments on commit 237bc01

Please sign in to comment.