]> git.openstreetmap.org Git - rails.git/commit
Simplify deny_access handling
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 20 Mar 2019 13:27:05 +0000 (14:27 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 20 Mar 2019 13:39:17 +0000 (14:39 +0100)
commit742291a840ea9dd741ef439e8678c50d1537973b
tree9d079b9867390f58987943caeb21d9f323bae1a9
parent3bb07e29ec7c178757f3c94eea84935a554d812d
Simplify deny_access handling

Now that we have all api controllers inheriting from a common base,
it's easier to override the deny_access handler without having to
switch between both.

Fixes #2064
16 files changed:
app/controllers/api/capabilities_controller.rb
app/controllers/api/changes_controller.rb
app/controllers/api/changeset_comments_controller.rb
app/controllers/api/changesets_controller.rb
app/controllers/api/map_controller.rb
app/controllers/api/nodes_controller.rb
app/controllers/api/notes_controller.rb
app/controllers/api/old_controller.rb
app/controllers/api/permissions_controller.rb
app/controllers/api/relations_controller.rb
app/controllers/api/tracepoints_controller.rb
app/controllers/api/traces_controller.rb
app/controllers/api/users_controller.rb
app/controllers/api/ways_controller.rb
app/controllers/api_controller.rb
app/controllers/application_controller.rb