diff options
Diffstat (limited to 'app/services/namespace_settings/update_service.rb')
-rw-r--r-- | app/services/namespace_settings/update_service.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/services/namespace_settings/update_service.rb b/app/services/namespace_settings/update_service.rb index c391320db5e..92766bc0267 100644 --- a/app/services/namespace_settings/update_service.rb +++ b/app/services/namespace_settings/update_service.rb @@ -27,6 +27,10 @@ module NamespaceSettings param_key: :default_branch_protection, user_policy: :update_default_branch_protection ) + validate_settings_param_for_root_group( + param_key: :default_branch_protection_defaults, + user_policy: :update_default_branch_protection + ) handle_default_branch_protection unless settings_params[:default_branch_protection].blank? |