Skip to content
Snippets Groups Projects
Commit acd2b1dc authored by Alexander Bias's avatar Alexander Bias
Browse files

Bugfix: Creating users and first logins resulted in a fatal error in 3.5...

Bugfix: Creating users and first logins resulted in a fatal error in 3.5 because of a visibility change of update_user_record() in Moodle core.
parent 70153669
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ Changes
### Unreleased
* 2018-06-25 - Bugfix: Creating users and first logins resulted in a fatal error in 3.5 because of a visibility change of update_user_record() in Moodle core.
* 2018-06-25 - Check compatibility for Moodle 3.5, no functionality change.
### v3.4-r4
......
......@@ -45,11 +45,10 @@ function update_user_onevent($eventdata) {
// Do only if user has ldap_syncplus authentication.
if (isset($user->auth) && $user->auth == 'ldap_syncplus') {
// Get LDAP Plugin.
$authplugin = get_auth_plugin('ldap_syncplus');
// Update user.
$authplugin->update_user_record($user->username);
// Actually, we would want to call auth_plugin_base::update_user_record()
// which is lighter, but this function is unfortunately protected since Moodle 3.5
update_user_record($user->username);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment