[openstreetmap/openstreetmap-website] Use CanCanCan for notes auth (#2074)
Andy Allan
notifications at github.com
Wed Nov 28 15:01:47 UTC 2018
Notes were also the last remaining thing using require_moderator, so I've removed this method and the corresponding translations.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/2074
-- Commit Summary --
* Use CanCanCan for notes authorization
* Remove the unused require_moderator filter
-- File Changes --
M app/abilities/ability.rb (3)
M app/abilities/capability.rb (2)
M app/controllers/application_controller.rb (23)
M app/controllers/notes_controller.rb (6)
M config/locales/en.yml (4)
M test/abilities/abilities_test.rb (32)
M test/abilities/capability_test.rb (42)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/2074.patch
https://github.com/openstreetmap/openstreetmap-website/pull/2074.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/2074
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20181128/547df9cf/attachment.html>
More information about the rails-dev
mailing list