Skip to content

Commit

Permalink
MDL-11783 no uploads after finalising; merged from MOODLE_19_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Dec 25, 2007
1 parent e7dee37 commit 8377472
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/assignment/type/upload/assignment.class.php
Expand Up @@ -801,7 +801,8 @@ function can_upload_file($submission) {
and $this->isopen() // assignment not closed yet
and (empty($submission) or $submission->grade == -1) // not graded
and (empty($submission) or $submission->userid == $USER->id) // his/her own submission
and $this->count_user_files($USER->id) < $this->assignment->var1) { // file limit not reached
and $this->count_user_files($USER->id) < $this->assignment->var1 // file limit not reached
and !$this->is_finalized($submission)) { // no uploading after final submission
return true;
} else {
return false;
Expand Down

0 comments on commit 8377472

Please sign in to comment.