18 lines
405 B
Ruby
18 lines
405 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Admin::AbuseReportsController < Admin::ApplicationController
|
|
feature_category :insider_threat
|
|
|
|
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
|