[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:


-- 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 --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- 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