gitlab-org--gitlab-foss/app/controllers/admin/abuse_reports_controller.rb

15 lines
360 B
Ruby
Raw Normal View History

class Admin::AbuseReportsController < Admin::ApplicationController
def index
@abuse_reports = AbuseReport.order(id: :desc).page(params[:page])
end
def destroy
abuse_report = AbuseReport.find(params[:id])
2016-03-12 07:11:30 -05:00
abuse_report.remove_user(deleted_by: current_user) if params[:remove_user]
abuse_report.destroy
render nothing: true
end
end