diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-03-07 20:01:32 +0300 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-03-07 20:01:32 +0300 |
commit | deb4bfa4681f2bcec32ddf89cdd78ca0d14cfdda (patch) | |
tree | c342edb6ddef017d4ab6e8d213c2f7d9cc2d65ed /app/services/users | |
parent | ce819eceea58f1452f59ffc275a4c8cb6c5da0d8 (diff) |
Backport relevant changes from EE https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4827 to CE
Diffstat (limited to 'app/services/users')
-rw-r--r-- | app/services/users/destroy_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/users/destroy_service.rb b/app/services/users/destroy_service.rb index b71002433d6..06b604dad4d 100644 --- a/app/services/users/destroy_service.rb +++ b/app/services/users/destroy_service.rb @@ -49,6 +49,8 @@ module Users ::Projects::DestroyService.new(project, current_user, skip_repo: project.legacy_storage?).execute end + yield(user) if block_given? + MigrateToGhostUserService.new(user).execute unless options[:hard_delete] # Destroy the namespace after destroying the user since certain methods may depend on the namespace existing |