]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/map_controller.rb
Merge remote-tracking branch 'upstream/pull/2204'
[rails.git] / app / controllers / api / map_controller.rb
index 1073660713d106cafa8781fd9d2c4aa7462fc2f6..e1d1a3b37844878661c9458fd41dd282a3396b81 100644 (file)
@@ -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