diff options
author | Stan Hu <stanhu@gmail.com> | 2017-04-16 08:21:40 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-04-16 08:36:33 -0700 |
commit | 60eee739f040e997d6dac3f4e21ef90daa6c7f30 (patch) | |
tree | ad09acc17c462ffeb1337d819dbaf7ba50d2a32e /app/services/users/destroy_service.rb | |
parent | 309bab431075eabfb7a01300f946ce9eb5b6fb98 (diff) | |
download | gitlab-ce-sh-add-option-to-hard-delete.tar.gz |
Hard delete users' associated records deleted from AbuseReportssh-add-option-to-hard-delete
In the case of spammers, we really want a hard delete to avoid retaining spam.
Closes #31021
Diffstat (limited to 'app/services/users/destroy_service.rb')
-rw-r--r-- | app/services/users/destroy_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/users/destroy_service.rb b/app/services/users/destroy_service.rb index ba58b174cc0..9eb6a600f6b 100644 --- a/app/services/users/destroy_service.rb +++ b/app/services/users/destroy_service.rb @@ -26,7 +26,7 @@ module Users ::Projects::DestroyService.new(project, current_user, skip_repo: true).execute end - MigrateToGhostUserService.new(user).execute + MigrateToGhostUserService.new(user).execute unless options[:hard_delete] # Destroy the namespace after destroying the user since certain methods may depend on the namespace existing namespace = user.namespace |