fix Submission#missing? when excused

closes #CNVS-24658

Change-Id: I9317fc30990af17d5580827e36108668f0bf394a
Reviewed-on: https://gerrit.instructure.com/66166
Tested-by: Jenkins
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
This commit is contained in:
James Williams 2015-10-30 07:41:31 -06:00
parent b1867aaa74
commit 2d8fd49762
1 changed files with 1 additions and 1 deletions

View File

@ -1163,7 +1163,7 @@ class Submission < ActiveRecord::Base
def missing?
return false if !past_due? || submitted_at.present?
assignment.expects_submission? || !(self.graded? && self.score > 0)
assignment.expects_submission? || !(self.excused || (self.graded? && self.score > 0))
end
alias_method :missing, :missing?