Skip to content
Extraits de code Groupes Projets
Valider 166202d0 rédigé par maxwell's avatar maxwell
Parcourir les fichiers

Revert "fixed commenting bug on current user's profile page"

This reverts commit 8264c58e.
parent 8264c58e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -47,12 +47,13 @@ class PeopleController < ApplicationController
if @person
@profile = @person.profile
@contact = current_user.contact_for(@person)
@is_contact = @person != current_user.person && @contact
if @contact
@aspects_with_person = @contact.aspects
end
@commenting_disabled = (current_user.person.id != @person.id) && !@contact
@commenting_disabled = !@contact
@posts = current_user.posts_from(@person).paginate :page => params[:page]
@post_hashes = hashes_for_posts @posts
......
......@@ -17,7 +17,7 @@
= link_to t('_photos'), person_photos_path(@person)
.span-8.append-1.last
= render :partial => 'people/profile_sidebar', :locals => {:person => @person, :is_contact => @contact}
= render :partial => 'people/profile_sidebar', :locals => {:person => @person, :is_contact => @is_contact}
.span-15.last
- unless @contact || current_user.person == @person
......
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