From 1a8541ff1ab31203d68030fe9dcdea14d848e47a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Tue, 10 Sep 2013 23:40:13 +0200 Subject: [PATCH] Fix another 500 in the mobile site for signed out browsing --- app/views/comments/_comment.mobile.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/comments/_comment.mobile.haml b/app/views/comments/_comment.mobile.haml index 8743e2fbc..b209efbdf 100644 --- a/app/views/comments/_comment.mobile.haml +++ b/app/views/comments/_comment.mobile.haml @@ -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)