mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 01:08:50 +01:00
completed reviews no longer show up that they need a review
This commit is contained in:
parent
5f5a2045b5
commit
3d3646a137
1 changed files with 1 additions and 0 deletions
|
|
@ -108,6 +108,7 @@ class Project < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def needs_review?(current_user)
|
||||
return false if self.completed?
|
||||
return true if last_reviewed.nil?
|
||||
return (active? && (last_reviewed < current_user.time - current_user.prefs.review_period.days))
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue