diff --git a/app/controllers/public/profile_controller.rb b/app/controllers/public/profile_controller.rb index 9096ef8..c4eb18e 100644 --- a/app/controllers/public/profile_controller.rb +++ b/app/controllers/public/profile_controller.rb @@ -278,7 +278,7 @@ class ProfileController < PublicController end def register_report - if !verify_recaptcha + unless user.is_admin? || verify_recaptcha render :text => { :ok => false, :error => { diff --git a/app/views/profile/report_abuse.html.erb b/app/views/profile/report_abuse.html.erb index 3862ad1..8fbfb7b 100644 --- a/app/views/profile/report_abuse.html.erb +++ b/app/views/profile/report_abuse.html.erb @@ -4,7 +4,9 @@ <%= hidden_field_tag(:content_type, params[:content_type]) %> <%= hidden_field_tag(:content_id, params[:content_id]) %> -
<%= recaptcha_tags :ajax => true, :display => {:theme => 'clean'} %>
+ <% unless user.is_admin? %> +<%= recaptcha_tags :ajax => true, :display => {:theme => 'clean'} %>
+ <% end %> <%= submit_button(:send, _('Report profile'), :style => 'float: left; cursor: pointer;', :id => 'report-abuse-submit-button', :onclick => "jQuery('#form-submit-loading').show()") %> <%= button(:cancel, _('Cancel'), {}, :style => 'float: left; padding-top: 0px; padding-bottom: 0px;', :onclick => 'jQuery.colorbox.close(); return false;')%> -- libgit2 0.21.2