MDL-50744 enrol_meta: fix incorrect role assign
This commit is contained in:
committed by
Dan Poltawski
parent
78de2e86e8
commit
dff6cdc883
@@ -216,7 +216,7 @@ class enrol_meta_handler {
|
||||
|
||||
if ($unenrolaction == ENROL_EXT_REMOVED_UNENROL) {
|
||||
// Purges grades, group membership, preferences, etc. - admins were warned!
|
||||
$plugin->unenrol_user($instance, $userid);
|
||||
$plugin->unenrol_user($instance, $ue->userid, null, 0, 0, $ue->status);
|
||||
|
||||
} else if ($unenrolaction == ENROL_EXT_REMOVED_SUSPEND) {
|
||||
if ($ue->status != ENROL_USER_SUSPENDED) {
|
||||
|
||||
Reference in New Issue
Block a user