]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/map_controller.rb
Check API status before authorizing access
[rails.git] / app / controllers / api / map_controller.rb
index 1b5150537bccb8299a990d4e0c47b20598a7df53..0d123fc3e7851f2d0eae4748d4cacf38575e8e47 100644 (file)
@@ -1,8 +1,9 @@
 module Api
   class MapController < ApiController
+    before_action :check_api_readable
+
     authorize_resource :class => false
 
-    before_action :check_api_readable
     around_action :api_call_handle_error, :api_call_timeout
 
     before_action :set_request_formats