MDL-12783 IMS idon't unenroll students who were enrolled by other plug-ins

Credit goes to Scott Krajewski for the bug report and patch!
This commit is contained in:
iarenaza
2008-06-08 15:28:08 +00:00
parent 1aeb49ce6e
commit 9306b4f5c5
+1 -1
View File
@@ -804,7 +804,7 @@ function process_membership_tag($tagcontents){
}elseif($CFG->enrol_imsunenrol){
// Unenrol
if (! role_unassign($moodleroleid, $memberstoreobj->userid, 0, $rolecontext)) {
if (! role_unassign($moodleroleid, $memberstoreobj->userid, 0, $rolecontext, 'imsenterprise')) {
$this->log_line("Error unenrolling $memberstoreobj->userid from role $moodleroleid in course");
}else{
$membersuntally++;