X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/3bb07e29ec7c178757f3c94eea84935a554d812d..6db326aa1f084a062a3b658876bc01bf650f5702:/app/controllers/api/map_controller.rb diff --git a/app/controllers/api/map_controller.rb b/app/controllers/api/map_controller.rb index 107366071..e1d1a3b37 100644 --- a/app/controllers/api/map_controller.rb +++ b/app/controllers/api/map_controller.rb @@ -1,7 +1,5 @@ module Api class MapController < ApiController - before_action :api_deny_access_handler - authorize_resource :class => false before_action :check_api_readable @@ -24,8 +22,8 @@ module Api bbox = BoundingBox.from_bbox_params(params) bbox.check_boundaries bbox.check_size - rescue StandardError => err - report_error(err.message) + rescue StandardError => e + report_error(e.message) return end