MDL-61260 auth_ldap: require /user/profile/lib.php file

This commit is contained in:
Mark Nelson
2018-01-29 11:31:36 +08:00
parent a11dae7625
commit d8c58a53d3
+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'));