mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
Merge branch 'MDL-79996' of https://github.com/paulholden/moodle
This commit is contained in:
commit
357fd47e68
@ -4113,8 +4113,10 @@ function delete_user(stdClass $user) {
|
||||
instancetype: 'coursecommunication',
|
||||
instanceid: $course->id,
|
||||
);
|
||||
$communication->get_room_user_provider()->remove_members_from_room([$user->id]);
|
||||
$communication->delete_instance_user_mapping([$user->id]);
|
||||
if ($communication !== null) {
|
||||
$communication->get_room_user_provider()->remove_members_from_room([$user->id]);
|
||||
$communication->delete_instance_user_mapping([$user->id]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user