mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 20:53:53 +01:00
When unenrolling a student from ALL courses, delete group memberships
This commit is contained in:
parent
17050991cd
commit
84bbca5355
@ -816,6 +816,7 @@ function unenrol_student($userid, $courseid=0) {
|
||||
|
||||
} else {
|
||||
delete_records("forum_subscriptions", "userid", $userid);
|
||||
delete_records("groups_members", "userid", $userid);
|
||||
return delete_records("user_students", "userid", $userid);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user