]> git.openstreetmap.org Git - rails.git/commit
Use CanCanCan for changeset comments
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 14 Nov 2018 14:45:30 +0000 (15:45 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 28 Nov 2018 11:35:45 +0000 (12:35 +0100)
commit8f70fb21146b1e8b90125e02d54e70bceea1d5fd
tree286e800a21f184ffd4c1c872323060edd37c94ef
parentb29c173ac75a9de5bf46a5e0779169d076428268
Use CanCanCan for changeset comments

This introduces different deny_access handlers for web and api requests, since we want to avoid sending redirects as API responses. See #2064 for discussion.
app/abilities/ability.rb
app/abilities/capability.rb
app/controllers/application_controller.rb
app/controllers/changeset_comments_controller.rb
test/abilities/capability_test.rb
test/factories/access_tokens.rb [new file with mode: 0644]