Skip to content

Commit

Permalink
MDL-12783 IMS idon't unenroll students who were enrolled by other plu…
Browse files Browse the repository at this point in the history
…g-ins

Credit goes to Scott Krajewski for the bug report and patch!
  • Loading branch information
iarenaza committed Jun 8, 2008
1 parent 1aeb49c commit 9306b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enrol/imsenterprise/enrol.php
Expand Up @@ -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++;
Expand Down

0 comments on commit 9306b4f

Please sign in to comment.