mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-35684: Check student user id, not grader user id to see if the submission is open.
This commit is contained in:
parent
695dee4bcd
commit
87683428a3
@ -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) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user