diff --git a/app/views/comments/_comment.html.haml b/app/views/comments/_comment.html.haml index 2a55fcd9a..9fd2b83e1 100644 --- a/app/views/comments/_comment.html.haml +++ b/app/views/comments/_comment.html.haml @@ -3,7 +3,7 @@ -# the COPYRIGHT file. %li.comment.posted{:data=>{:guid => comment.id}, :class => ("hidden" if(defined? hidden))} - - if current_user && current_user.owns?(comment) || current_user.owns?(comment.post) + - if current_user && (current_user.owns?(comment) || current_user.owns?(comment.post)) .right.controls = link_to image_tag('deletelabel.png'), comment_path(comment), :confirm => t('are_you_sure'), :method => :delete, :remote => true, :class => "delete comment_delete", :title => t('delete') = person_image_link(comment.author)