Browse files

MDL-12783 IMS idon't unenroll students who were enrolled by other plu…

…g-ins

Credit goes to Scott Krajewski for the bug report and patch!

Merged from MOODLE_18_STABLE
  • Loading branch information...
1 parent df1c48b commit ad1f69b66b3f9fd9eff2f4268f46130892abb608 iarenaza committed Jun 8, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/imsenterprise/enrol.php
View
2 enrol/imsenterprise/enrol.php
@@ -806,7 +806,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++;

0 comments on commit ad1f69b

Please sign in to comment.