Permalink
Browse files

MDL-37804 mod/assign: Students no longer able to submit files after d…

…ue date with Prevent late submissions turned on.
  • Loading branch information...
1 parent e038687 commit 5f11ce035d72f8ccf39fc223f9debedcb6eacc4c @recreate recreate committed May 28, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/assign/locallib.php
View
4 mod/assign/locallib.php
@@ -3992,6 +3992,10 @@ private function process_save_submission(&$mform, &$notices) {
return true;
}
if ($data = $mform->get_data()) {
+ if (!$this->submissions_open()) {
+ $notices[] = get_string('duedatereached', 'assign');
+ return false;
+ }
if ($this->get_instance()->teamsubmission) {
$submission = $this->get_group_submission($USER->id, 0, true);
} else {

0 comments on commit 5f11ce0

Please sign in to comment.