X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c789acd39d1c685b490975dc06721dadd76c83ef..0b0ff1bcc57efb79a1aa2d962fb3cfc64fe69845:/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') } %>