]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entries/_diary_comment.html.erb
Merge pull request #4887 from AntonKhorev/full-encode-wikipedia-value
[rails.git] / app / views / diary_entries / _diary_comment.html.erb
index c3c68fbc9934f0afdf2592e876f680d1ff9220f3..dbf8a439e78b8b472865639720a56a7055a62849 100644 (file)
@@ -10,7 +10,7 @@
     </p>
 
     <div class="richtext text-break"><%= diary_comment.body.to_html %></div>
-    <% if can? :hidecomment, DiaryEntry %>
+    <% if can? :hide, DiaryComment %>
       <span>
         <% if diary_comment.visible? %>
           <%= link_to t(".hide_link"), hide_diary_comment_path(diary_comment.diary_entry.user, diary_comment.diary_entry, diary_comment), :method => :post, :data => { :confirm => t(".confirm") } %>