mirror of
https://github.com/moodle/moodle.git
synced 2025-02-15 13:24:56 +01:00
assignment MDL-22609 notice when no submission yet - fixed.
This commit is contained in:
parent
e858c368ff
commit
1bd24d10cc
@ -900,8 +900,8 @@ class assignment_upload extends assignment_base {
|
||||
|
||||
if (is_enrolled($this->context, $USER, 'mod/assignment:submit')
|
||||
and $this->isopen() // assignment not closed yet
|
||||
and (empty($submission) or $submission->userid == $USER->id) // his/her own submission
|
||||
and $this->count_user_files($submission->id) < $this->assignment->var1 // file limit not reached
|
||||
and (empty($submission) or ($submission->userid == $USER->id // his/her own submission
|
||||
and $this->count_user_files($submission->id) < $this->assignment->var1)) // file limit not reached
|
||||
and !$this->is_finalized($submission)) { // no uploading after final submission
|
||||
return true;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user