[openstreetmap/openstreetmap-website] Allow users to delete their own diary entries (PR #4540)

Tom Hughes notifications at github.com
Wed May 22 17:32:23 UTC 2024


@tomhughes commented on this pull request.



> @@ -33,12 +33,12 @@
         </li>
       <% end %>
 
-      <% if can? :hide, DiaryEntry %>
+      <% if current_user && (current_user == diary_entry.user || current_user.moderator?) %>

Sure, added now.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4540#discussion_r1610390124
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4540/review/2071918864 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240522/ed767e7c/attachment.htm>


More information about the rails-dev mailing list