[openstreetmap/openstreetmap-website] More authorization refactoring (#2107)

Andy Allan notifications at github.com
Wed Jan 9 11:46:36 UTC 2019


This PR brings our authorization framework to search, export, browse, directions and swf controller, and ignores authorization for amf_controller since that handles both authorization and authentication itself.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/2107

-- Commit Summary --

  * Use CanCanCan for search controller
  * Use CanCanCan for export controller
  * Use CanCanCan for browse controller
  * Use CanCanCan for directions controller
  * Add missing authorize_resource declaration to geocoder controller
  * Skip authorization checks for amf controller
  * Use CanCanCan for swf controller

-- File Changes --

    M app/abilities/ability.rb (5)
    M app/controllers/amf_controller.rb (5)
    M app/controllers/browse_controller.rb (1)
    M app/controllers/directions_controller.rb (1)
    M app/controllers/export_controller.rb (1)
    M app/controllers/geocoder_controller.rb (1)
    M app/controllers/search_controller.rb (1)
    M app/controllers/swf_controller.rb (1)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/2107.patch
https://github.com/openstreetmap/openstreetmap-website/pull/2107.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/2107
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190109/62bd439d/attachment.html>


More information about the rails-dev mailing list