Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit bf4eccdd4219e3ba070af64ba2ab8349c186b6a1 1 parent e2637d1
@recreate recreate authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/assign/locallib.php
View
4 mod/assign/locallib.php
@@ -4757,6 +4757,10 @@ protected 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 ($instance->teamsubmission) {
$submission = $this->get_group_submission($USER->id, 0, true);
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.