[openstreetmap/openstreetmap-website] Allow users to delete their own diary entries (PR #4540)
Tom Hughes
notifications at github.com
Wed Feb 28 14:08:07 UTC 2024
@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
Not as far as I know, which is why I did what I did.
If there was a way to do it presumably we would already be using it for the many other actions it would apply to.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4540#discussion_r1506022107
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4540/review/1906363975 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240228/988c67db/attachment.htm>
More information about the rails-dev
mailing list