[openstreetmap/openstreetmap-website] CanCanCan for user blocks and redactions (#2051)

Tom Hughes notifications at github.com
Thu Nov 8 19:46:19 UTC 2018

I added some extra code in ccdec3ed4c0f7c472f6db7e5eff2dfc1579f3dd1 to try return nicer errors when the client is a browser... In practice I don't think that there is any path (other than deliberate mucking about) that should get you to those errors because you should only see the links if you are logged in as a moderator.

Much the same goes for the custom `deny_access` for diary entries, issues and issue comments in that I don't think they can generally happen so we should probably just let them hit the default.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20181108/1bba5135/attachment-0001.html>

More information about the rails-dev mailing list