diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -203,6 +203,11 @@ redirect_to :action => 'list' and return end + if recent_assignment.expired? + flash[:notice] = 'The current input is expired. Please download a new input data.' + redirect_to :action => 'list' and return + end + if recent_assignment.submitted flash[:notice] = 'You have already submitted an incorrect solution for this input. Please download a new input data.' redirect_to :action => 'list' and return