X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/91143a59593ac7f3ef80a47dc73aea9d4b904aaa..5995e2b3239b6d51d2403c81087b95034af1a8af:/app/controllers/traces/icons_controller.rb diff --git a/app/controllers/traces/icons_controller.rb b/app/controllers/traces/icons_controller.rb index c86e391e4..a62e6af86 100644 --- a/app/controllers/traces/icons_controller.rb +++ b/app/controllers/traces/icons_controller.rb @@ -9,12 +9,7 @@ module Traces trace = Trace.visible.imported.find(params[:trace_id]) if trace.public? || (current_user && current_user == trace.user) - if trace.icon.attached? - redirect_to rails_blob_path(trace.icon, :disposition => "inline") - else - expires_in 7.days, :private => !trace.public?, :public => trace.public? - send_file(trace.icon_picture_name, :filename => "#{trace.id}_icon.gif", :type => "image/gif", :disposition => "inline") - end + redirect_to rails_blob_path(trace.icon, :disposition => "inline") else head :forbidden end