[openstreetmap/openstreetmap-website] allow moderators to read hidden notes through API (#1933)
Frederik Ramm
notifications at github.com
Sun Jul 22 13:45:35 UTC 2018
If you are logged in to the web site with a moderator account, you get to see hidden notes; however the XML API will just return "Gone" when trying to access a hidden note. This pull request enables read access to hidden notes through the API with moderator authentication, and doesn't change anything else.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/1933
-- Commit Summary --
* allow moderators to read hidden notes through API
-- File Changes --
M app/controllers/notes_controller.rb (4)
M test/controllers/notes_controller_test.rb (4)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/1933.patch
https://github.com/openstreetmap/openstreetmap-website/pull/1933.diff
--
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/1933
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180722/5a085102/attachment.html>
More information about the rails-dev
mailing list