FIX: Post count progress was a little off. Minor fix to hidden posts

This commit is contained in:
Robin Ward
2013-12-09 14:28:32 -05:00
parent 5280e279f7
commit 744add9ece
3 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -264,7 +264,8 @@ class TopicView
end
def unfiltered_posts
result = @topic.posts.where(hidden: false)
result = @topic.posts
result = result.where(hidden: false) unless @user.try(:staff?)
result = result.with_deleted if @user.try(:staff?)
result
end