]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11783 no uploads after finalising; merged from MOODLE_19_STABLE
authorskodak <skodak>
Tue, 25 Dec 2007 22:03:31 +0000 (22:03 +0000)
committerskodak <skodak>
Tue, 25 Dec 2007 22:03:31 +0000 (22:03 +0000)
mod/assignment/type/upload/assignment.class.php

index 8bbd9e908db008c57dddc07f373c0a66b9ed1695..15054d7dce22b40ad12c63d841b49c075131bd2f 100644 (file)
@@ -801,7 +801,8 @@ class assignment_upload extends assignment_base {
           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;