X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/532dd10b18fd66e239aadc8a72170d05fa8cba93..23479067254696a9a59f89deeff93e22e0f3e661:/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) %>