From 9a8093da816c96e2bab9812c2f00ef276270793b Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 29 Aug 2023 15:10:34 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/services/groups/destroy_service.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'app/services/groups') diff --git a/app/services/groups/destroy_service.rb b/app/services/groups/destroy_service.rb index 0b54de469f8..a896ca5cabc 100644 --- a/app/services/groups/destroy_service.rb +++ b/app/services/groups/destroy_service.rb @@ -14,8 +14,6 @@ module Groups # TODO - add a policy check here https://gitlab.com/gitlab-org/gitlab/-/issues/353082 raise DestroyError, "You can't delete this group because you're blocked." if current_user.blocked? - group.prepare_for_destroy - group.projects.includes(:project_feature).each do |project| # Execute the destruction of the models immediately to ensure atomic cleanup. success = ::Projects::DestroyService.new(project, current_user).execute -- cgit v1.2.3