Welcome to mirror list, hosted at ThFree Co, Russian Federation.

abuse_reports_controller.rb « admin « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6f80ed3c17242c6ad50e9be869f34b00c79c9e8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

class Admin::AbuseReportsController < Admin::ApplicationController
  feature_category :users

  def index
    @abuse_reports = AbuseReportsFinder.new(params).execute
  end

  def destroy
    abuse_report = AbuseReport.find(params[:id])

    abuse_report.remove_user(deleted_by: current_user) if params[:remove_user]
    abuse_report.destroy

    head :ok
  end
end