diff --git a/app/presenters/post_presenter.rb b/app/presenters/post_presenter.rb index 22243f48fbc..e44c2d1bff4 100644 --- a/app/presenters/post_presenter.rb +++ b/app/presenters/post_presenter.rb @@ -41,10 +41,11 @@ def previous_post protected def post_base - if current_user + scope = if current_user Post.owned_or_visible_by_user(current_user) else Post.all_public end + scope.where(:author_id => post.author_id) end end \ No newline at end of file