diff options
-rw-r--r-- | .gitlab/CODEOWNERS | 4 | ||||
-rw-r--r-- | app/models/abuse_report.rb | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/.gitlab/CODEOWNERS b/.gitlab/CODEOWNERS index cb3bc544132..d4d1ebef83b 100644 --- a/.gitlab/CODEOWNERS +++ b/.gitlab/CODEOWNERS @@ -1,6 +1,6 @@ # Backend Maintainers are the default for all ruby files -*.rb @gitlab-org/maintainers/rails-backend -*.rake @gitlab-org/maintainers/rails-backend +*.rb @igor.drozdov +*.rake @ashmckenzie @ayufan @dbalexandre @DouweM @dzaporozhets @godfat @grzesiek @mkozono @mayra-cabrera @nick.thomas @rspeicher @rymai @reprazent @smcgivern @tkuah # Technical writing team are the default reviewers for everything in `doc/` /doc/ @axil @marcia @eread @mikelewis diff --git a/app/models/abuse_report.rb b/app/models/abuse_report.rb index a3a1748142f..7f557138830 100644 --- a/app/models/abuse_report.rb +++ b/app/models/abuse_report.rb @@ -16,6 +16,7 @@ class AbuseReport < ApplicationRecord # For CacheMarkdownField alias_method :author, :reporter + def remove_user(deleted_by:) user.delete_async(deleted_by: deleted_by, params: { hard_delete: true }) end |