Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…bmission is open.
  • Loading branch information...
commit 87683428a37005e2d6ea2f026c1ff58198a674ab 1 parent 695dee4
Damyon Wiese authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/assign/locallib.php
View
4 mod/assign/locallib.php
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.