MDL-53780 mod_assign: Remove teachers from submission group members
This commit is contained in:
committed by
Dan Poltawski
parent
7159a9ab0c
commit
2779372c17
@@ -2062,11 +2062,7 @@ class assign {
|
||||
public function get_submission_group_members($groupid, $onlyids, $excludesuspended = false) {
|
||||
$members = array();
|
||||
if ($groupid != 0) {
|
||||
if ($onlyids) {
|
||||
$allusers = groups_get_members($groupid, 'u.id');
|
||||
} else {
|
||||
$allusers = groups_get_members($groupid);
|
||||
}
|
||||
$allusers = $this->list_participants($groupid, $onlyids);
|
||||
foreach ($allusers as $user) {
|
||||
if ($this->get_submission_group($user->id)) {
|
||||
$members[] = $user;
|
||||
|
||||
Reference in New Issue
Block a user