X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/532dd10b18fd66e239aadc8a72170d05fa8cba93..7633657ecb93d45fef823f7707d91e1576c18a1f:/app/views/diary_entries/_diary_entry.html.erb diff --git a/app/views/diary_entries/_diary_entry.html.erb b/app/views/diary_entries/_diary_entry.html.erb index d4ee530d7..62e701d14 100644 --- a/app/views/diary_entries/_diary_entry.html.erb +++ b/app/views/diary_entries/_diary_entry.html.erb @@ -23,7 +23,7 @@ <% end %> - <% if current_user && current_user == diary_entry.user %> + <% if can?(:edit, diary_entry) %>