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:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user