[openstreetmap/openstreetmap-website] Allow admins and moderators to delete traces (#1734)

Andy Allan notifications at github.com
Sun Feb 11 10:56:54 UTC 2018


This PR shows the link, but it won't actually work. In trace_controller.rb#delete method, only the trace owner can delete the trace.

It is best to create a test (in test/controllers/trace_controller_test.rb) that logs in as an admin and tries to delete the trace. That would highlight the problem that I mention.

-- 
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/pull/1734#issuecomment-364742408
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180211/38da4688/attachment.html>


More information about the rails-dev mailing list