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

This commit is contained in:
danmarsden
2008-01-21 23:22:12 +00:00
parent 49292fa026
commit 7993f4bdaa
+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');
}
}