Skip to content
Snippets Groups Projects
Commit 653e93fb authored by Maxwell Salzberg's avatar Maxwell Salzberg Committed by danielgrippi
Browse files

fix the query to only cycle thru the current authors posts

parent 0ab8ef1d
No related branches found
No related tags found
No related merge requests found
...@@ -41,10 +41,11 @@ class PostPresenter ...@@ -41,10 +41,11 @@ class PostPresenter
protected protected
def post_base def post_base
if current_user scope = if current_user
Post.owned_or_visible_by_user(current_user) Post.owned_or_visible_by_user(current_user)
else else
Post.all_public Post.all_public
end end
scope.where(:author_id => post.author_id)
end end
end end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment