X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/44629832dd0207d7b0f50b93f1d00b4373dd4d49..87918595da1e1fad2ddd7aa62f9fc537dff657ff:/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 %>