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/protected_branches/legacy_api_create_service.rb')
-rw-r--r--app/services/protected_branches/legacy_api_create_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/protected_branches/legacy_api_create_service.rb b/app/services/protected_branches/legacy_api_create_service.rb
index aef99a860a0..f662d9d1bf0 100644
--- a/app/services/protected_branches/legacy_api_create_service.rb
+++ b/app/services/protected_branches/legacy_api_create_service.rb
@@ -24,7 +24,7 @@ module ProtectedBranches
@params.merge!(push_access_levels_attributes: [{ access_level: push_access_level }],
merge_access_levels_attributes: [{ access_level: merge_access_level }])
- service = ProtectedBranches::CreateService.new(@project, @current_user, @params)
+ service = ProtectedBranches::CreateService.new(project_or_group, @current_user, @params)
service.execute
end
end