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