X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/33ea119c8f520a7e679e38b569c202976907a501..99492de1d30fcc93576e33b6b0362a455105f72c:/app/views/traces/list.html.erb
diff --git a/app/views/traces/list.html.erb b/app/views/traces/list.html.erb
index 4c433ce66..d63d5c52b 100644
--- a/app/views/traces/list.html.erb
+++ b/app/views/traces/list.html.erb
@@ -11,8 +11,8 @@
<% if @display_name %>
<%= link_to t('.see_all_traces'), :controller => 'traces', :action => 'list', :display_name => nil, :tag => nil, :page => nil %>
<% end %>
- <%= unless_user(@target_user, :li) do %>
- <%= link_to t('.see_my_traces'), :action => 'mine', :tag => nil, :page => nil %>
+ <% if current_user && current_user != @target_user %>
+ <%= link_to t('.see_my_traces'), :action => 'mine', :tag => nil, :page => nil %>
<% end %>
<% end %>