Fix another 500 in the mobile site for signed out browsing

This commit is contained in:
Jonne Haß 2013-09-10 23:40:13 +02:00
parent 72e421b38f
commit 1a8541ff1a

View file

@ -6,7 +6,7 @@
.content
.remove_comment
.right
- if comment.author == current_user.person
- if user_signed_in? && comment.author == current_user.person
= link_to(image_tag('deletelabel.png'), comment_path(comment), :method => :delete, :data => { :confirm => "#{t('are_you_sure')}" }, :class => "remove")
.from
= person_image_link(comment.author)