[openstreetmap/openstreetmap-website] Check diary entry edit/update ability using CanCanCan (PR #5012)
Tom Hughes
notifications at github.com
Tue Jul 23 16:31:24 UTC 2024
Looks good to me.
For anybody that isn't aware of it @AntonKhorev is taking advantage of aliases defined by https://github.com/CanCanCommunity/cancancan/blob/develop/docs/define_check_abilities.md#can-actions which means that `:update` implies `:edit` as well. I can see there are a number of other places where we could take advantage of those aliases...
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5012#issuecomment-2245708279
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5012/c2245708279 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240723/13c4766d/attachment.htm>
More information about the rails-dev
mailing list