diff --git a/app/controllers/test_controller.rb b/app/controllers/test_controller.rb --- a/app/controllers/test_controller.rb +++ b/app/controllers/test_controller.rb @@ -99,7 +99,12 @@ @problems << problem end end - @test_requests = @user.test_requests + @test_requests = [] + @user.test_requests.each do |ts| + if ts.problem.available + @test_requests << ts + end + end end def check_viewability