[openstreetmap/openstreetmap-website] Allow administrators to see deleted diary comments (936967d)

Andy Allan notifications at github.com
Fri Oct 18 07:47:35 UTC 2019


It would be better to use the permissions system here, rather than hardcoding the specific role. So for example `unless can? :unhidecomment, DiaryEntry` - that way if we grant `:unhidecomment` ability to another group in future, it'll work for them too.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/commit/936967d0cbf389431c7a6ba79c169a285140477d#commitcomment-35557107
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20191018/3eb02e2b/attachment.html>


More information about the rails-dev mailing list