X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e670da54cbc4a7b00525b8decb506a23deddd918..e31376e28da8f656e33508cc899da465b63673c5:/app/views/user/_contact.html.erb?ds=sidebyside
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 %>