mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
This is intended to prevent the user from creating new objects while the transaction that removes them is being run, resulting in objects with nil authors which can then not be edited. See https://gitlab.com/gitlab-org/gitlab-ce/issues/7117
15 lines
334 B
Ruby
15 lines
334 B
Ruby
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])
|
|
|
|
abuse_report.remove_user if params[:remove_user]
|
|
abuse_report.destroy
|
|
|
|
render nothing: true
|
|
end
|
|
end
|