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

This commit is contained in:
Mark Nelson 2018-01-29 11:30:05 +08:00
parent a4f914b54d
commit 029ec1edfe

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'));