Permalink
Browse files

MDL-35684: Check student user id, not grader user id to see if the su…

…bmission is open.
  • Loading branch information...
1 parent 695dee4 commit 87683428a37005e2d6ea2f026c1ff58198a674ab Damyon Wiese committed Sep 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/assign/locallib.php
View
@@ -2952,9 +2952,9 @@ private function submissions_open($userid = 0) {
}
$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) {

0 comments on commit 8768342

Please sign in to comment.