X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/46761798797638a4ef8c35b3bf8e5b1ee83e263f..79bd177:/app/views/user_blocks/show.html.erb
diff --git a/app/views/user_blocks/show.html.erb b/app/views/user_blocks/show.html.erb
index ccd6df06f..cc0caa6f3 100644
--- a/app/views/user_blocks/show.html.erb
+++ b/app/views/user_blocks/show.html.erb
@@ -12,10 +12,10 @@
{:controller => 'user', :action => 'view', :display_name => @user_block.creator.display_name})) %>
<% if @user_block.ends_at > Time.now.getutc %>
- <% if @user and @user.id == @user_block.creator_id %>
+ <% if current_user and current_user.id == @user_block.creator_id %>
- <%= link_to t('user_block.show.edit'), edit_user_block_path(@user_block) %>
<% end %>
- <% if @user and @user.moderator? %>
+ <% if current_user and current_user.moderator? %>
- <%= link_to(t('user_block.show.revoke'),{:controller => 'user_blocks', :action => 'revoke', :id => @user_block.id}) %>
<% end %>
<% end %>