MDL-35684: Check student user id, not grader user id to see if the submission is open.

This commit is contained in:
Damyon Wiese 2012-09-28 11:09:38 +08:00
parent 695dee4bcd
commit 87683428a3

View File

@ -2952,9 +2952,9 @@ class assign {
}
$submission = false;
if ($this->get_instance()->teamsubmission) {
$submission = $this->get_group_submission($USER->id, 0, false);
$submission = $this->get_group_submission($userid, 0, false);
} else {
$submission = $this->get_user_submission($USER->id, false);
$submission = $this->get_user_submission($userid, false);
}
if ($submission) {