Person show should be scoped through user

This commit is contained in:
Raphael 2010-08-16 11:18:52 -07:00
parent 99fb383dc0
commit 6ae4c31e05

View file

@ -6,7 +6,7 @@ class PeopleController < ApplicationController
end
def show
@person= Person.where(:id => params[:id]).first
@person= current_user.friend_by_id(params[:id])
@person_profile = @person.profile
@person_posts = Post.where(:person_id => @person.id).paginate :page => params[:page], :order => 'created_at DESC'