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!

Merged from MOODLE_18_STABLE
  • Loading branch information
iarenaza committed Jun 8, 2008
1 parent 6093e39 commit 50bf1c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enrol/imsenterprise/enrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 50bf1c3

Please sign in to comment.