Skip to content
Extraits de code Groupes Projets
Valider 6ae4c31e rédigé par Raphael's avatar Raphael
Parcourir les fichiers

Person show should be scoped through user

parent 99fb383d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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'
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter