We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1b4489 commit d739f89Copy full SHA for d739f89
app/controllers/submissions_controller.rb
@@ -324,6 +324,7 @@ def check_access!
324
else
325
return if can?(:teach, @course) || @submission.user_id.to_s == current_user.id.to_s
326
if @submission.created_at > 2.hours.ago
327
+ respond_access_denied("You cannot see this paste because all tests passed and you haven't completed this exercise.") unless paste_visible
328
return
329
330
unless paste_visible
0 commit comments