[openstreetmap/openstreetmap-website] Use CanCanCan for user_roles auth (#2078)

Andy Allan notifications at github.com
Wed Nov 28 20:43:52 UTC 2018


This refactors another controller to use CanCanCan, and removes some custom code for requiring administrators.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Use CanCanCan for user_roles auth

-- File Changes --

    M app/abilities/ability.rb (1)
    M app/controllers/user_roles_controller.rb (15)
    M config/locales/en.yml (1)
    M test/abilities/abilities_test.rb (24)
    M test/controllers/user_roles_controller_test.rb (6)

-- Patch Links --

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


More information about the rails-dev mailing list