X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/960d13488a875245570ee498ee9a1ed7cac37bbe..7d3a5899c9ef20b9a67eda05c1b1c167b6677bdd:/app/views/trace/view.rhtml
diff --git a/app/views/trace/view.rhtml b/app/views/trace/view.rhtml
index f547f05db..585342c02 100644
--- a/app/views/trace/view.rhtml
+++ b/app/views/trace/view.rhtml
@@ -53,10 +53,10 @@
<% unless @trace.public? %>
<%= button_to 'Make this track public permanently', :controller => 'trace', :action => 'make_public', :id => @trace.id %> |
<% end %>
- <% if @trace.user.id == @user.id %>
+ <% if @trace.user == @user %>
<%= button_to 'Edit this track', :controller => 'trace', :action => 'edit', :id => @trace.id %> |
<% end %>
- <% if @trace.user.id == @user.id %>
+ <% if @trace.user == @user %>
<%= button_to 'Delete this track', :controller => 'trace', :action => 'delete', :id => @trace.id %> |
<% end %>