Fix for MDL-12998 and MDL-13079 Ldap not unenrolling users correctly merged from HEAD

This commit is contained in:
danmarsden
2008-01-21 23:22:49 +00:00
parent d4e4739aed
commit 9d6bdd5874
+1 -1
View File
@@ -116,7 +116,7 @@ function setup_enrolments(&$user) {
foreach ($ldap_assignments as $ra) {
if($ra->enrol === 'ldap') {
error_log("Unassigning role_assignment with id '{$ra->id}' from user {$user->id} ({$user->username})");
role_unassign($ra->id, $user->id, 0, $ra->contextid, 'ldap');
role_unassign($ra->roleid, $user->id, 0, $ra->contextid, 'ldap');
}
}