Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/groups/create_service.rb')
-rw-r--r--app/services/groups/create_service.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/services/groups/create_service.rb b/app/services/groups/create_service.rb
index 25a1e9a9873..0f74b2d9349 100644
--- a/app/services/groups/create_service.rb
+++ b/app/services/groups/create_service.rb
@@ -60,7 +60,11 @@ module Groups
end
def remove_unallowed_params
- params.delete(:default_branch_protection) unless can?(current_user, :create_group_with_default_branch_protection)
+ unless can?(current_user, :create_group_with_default_branch_protection)
+ params.delete(:default_branch_protection)
+ params.delete(:default_branch_protection_defaults)
+ end
+
params.delete(:allow_mfa_for_subgroups)
end