blob: 31d825c235bc177f27fc99d04c1f69673cbf2d99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# frozen_string_literal: true
class Admin::AbuseReportsController < Admin::ApplicationController
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
|