X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/99bed16f9a905bf7a167f927cce5f15f9064fd20..4e67530753b3de79c34be38cee8233da7d616574:/app/controllers/traces/icons_controller.rb?ds=sidebyside 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")