[openstreetmap/openstreetmap-website] Check diary entry edit/update ability using CanCanCan (PR #5012)

Anton Khorev notifications at github.com
Tue Jul 23 15:28:39 UTC 2024


Does [this](https://github.com/openstreetmap/openstreetmap-website/pull/4540#discussion_r1610270567) but for `:update` ability (which includes `:edit` ability).
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5012

-- Commit Summary --

  * Check diary entry edit/update ability using CanCanCan

-- File Changes --

    M app/abilities/ability.rb (3)
    M app/controllers/diary_entries_controller.rb (2)
    M app/views/diary_entries/_diary_entry.html.erb (2)
    M test/controllers/diary_entries_controller_test.rb (23)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5012.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5012.diff

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

Message ID: <openstreetmap/openstreetmap-website/pull/5012 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240723/65da4949/attachment.htm>


More information about the rails-dev mailing list