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

Tom Hughes notifications at github.com
Wed Feb 12 20:58:35 UTC 2025


@tomhughes commented on this pull request.



> @@ -43,7 +43,7 @@ def initialize(user)
         can [:new, :show, :create, :destroy], :oauth2_authorization
         can [:edit, :update, :destroy], :account
         can [:show], :dashboard
-        can [:new, :create, :edit, :update, :comment, :subscribe, :unsubscribe], DiaryEntry
+        can [:new, :create, :edit, :update, :comment, :subscribe, :unsubscribe, :hide, :unhide], DiaryEntry

I've rebased this and applied this change to let CanCanCan control which entries can be hidden.

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

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


More information about the rails-dev mailing list