]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/traces_controller.rb
Only report traces as offline when they are offline
[rails.git] / app / controllers / api / traces_controller.rb
index 000bb7f9036ec095bdf1df3d6c7db6954a1c1240..0b441bef986d9aa5ba4bfd1625001a6144b7115f 100644 (file)
@@ -159,7 +159,7 @@ module Api
     end
 
     def offline_error
-      report_error "GPX files offline for maintenance", :service_unavailable
+      report_error "GPX files offline for maintenance", :service_unavailable if Settings.status == "gpx_offline"
     end
   end
 end