]> git.openstreetmap.org Git - rails.git/commit
Move check_api_readable to api_controller
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 29 May 2024 13:54:16 +0000 (14:54 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 29 May 2024 13:54:16 +0000 (14:54 +0100)
commitc1cccd40fc6af6b9790c9902581cf2e49006c084
tree94c2fa05d7704871562dcfee23a9e76f8b20df1f
parent0bbfe922eadabac6ca753e0a6d2e2410c69eae54
Move check_api_readable to api_controller

It's easier to skip the check in the two places that we need to, and
include it by default everywhere else.
17 files changed:
app/controllers/api/capabilities_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_elements_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/user_blocks_controller.rb
app/controllers/api/user_preferences_controller.rb
app/controllers/api/users_controller.rb
app/controllers/api/versions_controller.rb
app/controllers/api/ways_controller.rb
app/controllers/api_controller.rb