[openstreetmap/openstreetmap-website] Refactor users_controller to use CanCanCan for authorisation (#2084)

Andy Allan notifications at github.com
Wed Dec 12 15:19:40 UTC 2018


This PR builds on #2083 , so it should wait until that is approved before reviewing.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Use only token capabilities when a token is provided
  * Refactor users_controller to use CanCanCan for authorisation

-- File Changes --

    M app/abilities/ability.rb (3)
    M app/abilities/capability.rb (2)
    M app/controllers/application_controller.rb (4)
    M app/controllers/users_controller.rb (25)
    M config/locales/en.yml (2)
    M test/controllers/user_preferences_controller_test.rb (31)
    M test/controllers/users_controller_test.rb (24)

-- Patch Links --

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


More information about the rails-dev mailing list