mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 20:36:42 +01:00
assignment MDL-22893 file count limit is now controlled by the files api options passed in. allow deleting of files via files manager when files count is at the limit.
This commit is contained in:
parent
96f3544025
commit
03f91f6d14
@ -901,7 +901,7 @@ 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 $this->count_user_files($submission->id) <= $this->assignment->var1)) // file limit not exceeded
|
||||
and !$this->is_finalized($submission)) { // no uploading after final submission
|
||||
return true;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user