X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/41000078b9e0131d75ce610f148655fb7b32da73..c819bec8b7b81fb2766a67247440375e4a837d10:/app/views/redactions/show.html.erb diff --git a/app/views/redactions/show.html.erb b/app/views/redactions/show.html.erb index 174fe97e4..b9786992c 100644 --- a/app/views/redactions/show.html.erb +++ b/app/views/redactions/show.html.erb @@ -12,8 +12,8 @@ <%= @redaction.description.to_html %>

-<% if @user and @user.moderator? %> -
+<% if current_user and current_user.moderator? %> +
<%= button_to t('redaction.show.edit'), edit_redaction_path(@redaction), :method => :get %> <%= button_to t('redaction.show.destroy'), @redaction, :method => "delete", :remote => true, :data => { :confirm => t('redaction.show.confirm') } %>