X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/50f658142be71156945d5ab3a73ae3851365768b..76a46824a469d31f1a00164586bad959d990bf66:/app/controllers/api/old_controller.rb?ds=inline diff --git a/app/controllers/api/old_controller.rb b/app/controllers/api/old_controller.rb index ceed10978..7c9c32e63 100644 --- a/app/controllers/api/old_controller.rb +++ b/app/controllers/api/old_controller.rb @@ -7,7 +7,7 @@ module Api 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 +38,7 @@ module Api end end - def version + def show if @old_element.redacted? && !show_redactions? head :forbidden