X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/63186dc161324a123724f666910b58db4c3a235e..3ece776664381794b5e342e82ed2be3f47f120b5:/app/views/diary_entries/_diary_comment.html.erb diff --git a/app/views/diary_entries/_diary_comment.html.erb b/app/views/diary_entries/_diary_comment.html.erb index 301739eef..639ac9a19 100644 --- a/app/views/diary_entries/_diary_comment.html.erb +++ b/app/views/diary_entries/_diary_comment.html.erb @@ -7,7 +7,7 @@

<%= diary_comment.body.to_html %>
- <% if current_user && current_user.administrator? %> + <% if can? :hidecomment, DiaryEntry %> <% if diary_comment.visible? %> <%= link_to t(".hide_link"), hide_diary_comment_path(:display_name => diary_comment.diary_entry.user.display_name, :id => diary_comment.diary_entry.id, :comment => diary_comment.id), :method => :post, :data => { :confirm => t(".confirm") } %>