X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2def62ee19b2b7e6fa7ede5a486a7b12abf9529d..0e78061cdba5cfb3f299f57b7643d2b396ee235b:/app/controllers/api/traces_controller.rb diff --git a/app/controllers/api/traces_controller.rb b/app/controllers/api/traces_controller.rb index 000bb7f90..6c77f9dc4 100644 --- a/app/controllers/api/traces_controller.rb +++ b/app/controllers/api/traces_controller.rb @@ -1,7 +1,5 @@ module Api class TracesController < ApiController - layout "site", :except => :georss - before_action :authorize_web before_action :set_locale before_action :authorize @@ -159,7 +157,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