X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/58d889436fc05c1a3c32cf6aa28cc751badf99ad..673b58f96f3acfd0281c62a2a7f080825b6fb28b:/app/views/user_blocks/_block.html.erb diff --git a/app/views/user_blocks/_block.html.erb b/app/views/user_blocks/_block.html.erb index 362cfd107..501ae92d0 100644 --- a/app/views/user_blocks/_block.html.erb +++ b/app/views/user_blocks/_block.html.erb @@ -17,7 +17,7 @@ <% end %> <%= link_to t('user_block.partial.show'), block %> - <% if @user and @user.id == block.creator_id and block.active? %><%= link_to t('user_block.partial.edit'), edit_user_block_path(block) %><% end %> + <% if current_user and current_user.id == block.creator_id and block.active? %><%= link_to t('user_block.partial.edit'), edit_user_block_path(block) %><% end %> <% if show_revoke_link %> <% if block.active? %><%= link_to t('user_block.partial.revoke'), :controller => 'user_blocks', :action => 'revoke', :id => block.id %><% end %> <% end %>