X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e670da54cbc4a7b00525b8decb506a23deddd918..0df788d74232330eea5c2d4854ba0d10796053eb:/app/views/user/_contact.html.erb
diff --git a/app/views/user/_contact.html.erb b/app/views/user/_contact.html.erb
index 4811389f1..08b982cd7 100644
--- a/app/views/user/_contact.html.erb
+++ b/app/views/user/_contact.html.erb
@@ -37,7 +37,7 @@
- <%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :display_name => contact.display_name %>
-
- <% if @user.is_friends_with?(contact) %>
+ <% if current_user.is_friends_with?(contact) %>
<%= link_to t('user.view.remove as friend'), remove_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>
<% else %>
<%= link_to t('user.view.add as friend'), make_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>