Skip to content

Commit

Permalink
fix(submission/monitoring_concern): only block in attempting state
Browse files Browse the repository at this point in the history
  • Loading branch information
cysjonathan authored and purfectliterature committed Nov 18, 2024
1 parent 2c5354b commit f4f42fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def should_monitor? # rubocop:disable Metrics/CyclomaticComplexity
current_course_user&.student? &&
can?(:create, Course::Monitoring::Session.new(creator_id: current_user.id)) &&
@assessment&.monitor&.enabled? &&
!@submission.submitted?
@submission.attempting?
end

def monitoring_service
Expand Down

0 comments on commit f4f42fb

Please sign in to comment.