]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/traces/icons_controller.rb
Make blank role icons transparent
[rails.git] / app / controllers / traces / icons_controller.rb
index a581796548422f10464c1737741d5441d04c1108..ec67a6bb1336585735388d96709d69653c248b77 100644 (file)
@@ -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")