fix for mod queue logic

This commit is contained in:
albert
2013-02-22 20:59:21 -05:00
parent e0dfd14804
commit 4203f344c0
3 changed files with 3 additions and 6 deletions

View File

@@ -866,7 +866,7 @@ class Post < ActiveRecord::Base
end
def pending_or_flagged
where("(is_pending = ? OR is_flagged = ?)", true, true)
where("(is_pending = true OR (is_flagged = true and is_deleted = false))")
end
def undeleted