X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/180a61bcc30a165899e0bbadb77d1114170a0fda..3734cff2bab6dd2e6527d991bf70cf9d52f026d4:/app/controllers/traces/icons_controller.rb diff --git a/app/controllers/traces/icons_controller.rb b/app/controllers/traces/icons_controller.rb index a58179654..ec67a6bb1 100644 --- a/app/controllers/traces/icons_controller.rb +++ b/app/controllers/traces/icons_controller.rb @@ -6,9 +6,9 @@ module Traces authorize_resource :trace def show - trace = Trace.find(params[:trace_id]) + trace = Trace.visible.find(params[:trace_id]) - if trace.visible? && trace.inserted? + if trace.inserted? if trace.public? || (current_user && current_user == trace.user) if trace.icon.attached? redirect_to rails_blob_path(trace.icon, :disposition => "inline")