]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/trace_controller.rb
Explicitly disable the layout for actions which don't want it
[rails.git] / app / controllers / trace_controller.rb
index dbb8a6f2cb8ef4144e4e8d2eb47863fcb2b0d743..0ab87f6af72ef3b7fae671375aa1872b7022a3d9 100644 (file)
@@ -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.match(request.remote_ip).where(:k => "no_trace_download").exists?
+      if Acl.no_trace_download(request.remote_ip)
         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')