X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/12c1d5e6c05813a0697724277b4d8529a1a7c240..fba552873173064c24a3d1eeceb64d3a9162139e:/app/controllers/api/old_controller.rb diff --git a/app/controllers/api/old_controller.rb b/app/controllers/api/old_controller.rb index ceed10978..5b16b453d 100644 --- a/app/controllers/api/old_controller.rb +++ b/app/controllers/api/old_controller.rb @@ -3,11 +3,9 @@ # nodes, ways and relations are basically identical. module Api class OldController < ApiController - require "xml/libxml" - before_action :check_api_readable before_action :check_api_writable, :only => [:redact] - before_action :setup_user_auth, :only => [:history, :version] + before_action :setup_user_auth, :only => [:history, :show] before_action :authorize, :only => [:redact] authorize_resource @@ -38,7 +36,7 @@ module Api end end - def version + def show if @old_element.redacted? && !show_redactions? head :forbidden