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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-29 01:00:24 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-29 01:00:32 +0300
commit36c8a31d573bdd2edd4c87be63eb8dde20a79761 (patch)
tree066a4e64b1efb9c9dabbf3c2e097d32a82656ef8 /app/services
parentcc201d1e1be2c8f4de2e2265c2b83bd925f8a260 (diff)
Add latest changes from gitlab-org/security/gitlab@15-4-stable-ee
Diffstat (limited to 'app/services')
-rw-r--r--app/services/base_project_service.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/base_project_service.rb b/app/services/base_project_service.rb
index 1bf4a235a79..8cb6b632a9e 100644
--- a/app/services/base_project_service.rb
+++ b/app/services/base_project_service.rb
@@ -7,7 +7,9 @@ class BaseProjectService < ::BaseContainerService
attr_accessor :project
def initialize(project:, current_user: nil, params: {})
- super(container: project, current_user: current_user, params: params)
+ # we need to exclude project params since they may come from external requests. project should always
+ # be passed as part of the service's initializer
+ super(container: project, current_user: current_user, params: params.except(:project, :project_id))
@project = project
end