Merge pull request #34 from Popsch/fix_review

completed reviews no longer show up that they need a review
This commit is contained in:
Reinier Balt 2011-10-10 04:42:08 -07:00
commit 7801406e51

View file

@ -108,8 +108,8 @@ class Project < ActiveRecord::Base
end
def needs_review?(current_user)
return true if last_reviewed.nil?
return (active? && (last_reviewed < current_user.time - current_user.prefs.review_period.days))
return active? && ( last_reviewed.nil? ||
(last_reviewed < current_user.time - current_user.prefs.review_period.days))
end
def blocked?