debian-mirror-gitlab/app/controllers/admin/abuse_reports_controller.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
396 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
2015-09-11 14:41:01 +05:30
class Admin::AbuseReportsController < Admin::ApplicationController
2021-01-03 14:25:43 +05:30
feature_category :users
2015-09-11 14:41:01 +05:30
def index
2019-12-26 22:10:19 +05:30
@abuse_reports = AbuseReportsFinder.new(params).execute
2015-09-11 14:41:01 +05:30
end
def destroy
abuse_report = AbuseReport.find(params[:id])
2016-06-02 11:05:42 +05:30
abuse_report.remove_user(deleted_by: current_user) if params[:remove_user]
2015-09-11 14:41:01 +05:30
abuse_report.destroy
2016-06-02 11:05:42 +05:30
head :ok
2015-09-11 14:41:01 +05:30
end
end