X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/8ba74c581dff4c66cbe07f94f4283298bb46f22c..cd43529cc8d9b8c020117fd5d690a64f2f0464b9:/app/controllers/trace_controller.rb diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index f206bb99f..dbb8a6f2c 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/trace_controller.rb @@ -163,7 +163,7 @@ class TraceController < ApplicationController trace = Trace.find(params[:id]) if trace.visible? and (trace.public? or (@user and @user == trace.user)) - if Acl.address(request.remote_ip).where(:k => "no_trace_download").exists? + if Acl.match(request.remote_ip).where(:k => "no_trace_download").exists? render :nothing => true, :status => :forbidden elsif request.format == Mime::XML send_file(trace.xml_file, :filename => "#{trace.id}.xml", :type => Mime::XML.to_s, :disposition => 'attachment')