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

Tom Hughes notifications at github.com
Mon Jun 29 19:12:11 UTC 2026


@tomhughes commented on this pull request.



> @@ -43,7 +43,7 @@ def initialize(user)
         can :read, :dashboard
         can [:read, :update], [:preferences, :profile]
         can [:create, :subscribe, :unsubscribe], DiaryEntry
-        can :update, DiaryEntry, :user => user
+        can [:update, :hide, :unhide], DiaryEntry, :user => user

No I think that's always applied, otherwise anybody would be able able to update other people's diary entries at the moment?

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

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


More information about the rails-dev mailing list