diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-30 14:46:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-30 14:46:35 +0300 |
commit | 6202c551d8732ed0335dcee480bf70791f438033 (patch) | |
tree | 2ccaae5881acd6c47b62efafefec3a7cdc2dada8 /app | |
parent | 64ed8e1d79a385fef8bf3da630a1d5c5f9b9577b (diff) |
Add latest changes from gitlab-org/security/gitlab@13-12-stable-ee
Diffstat (limited to 'app')
-rw-r--r-- | app/services/projects/fork_service.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/services/projects/fork_service.rb b/app/services/projects/fork_service.rb index fd9b64a4ee0..3cee1b5975a 100644 --- a/app/services/projects/fork_service.rb +++ b/app/services/projects/fork_service.rb @@ -34,8 +34,9 @@ module Projects new_project = CreateService.new(current_user, new_fork_params).execute return new_project unless new_project.persisted? - builds_access_level = @project.project_feature.builds_access_level - new_project.project_feature.update(builds_access_level: builds_access_level) + new_project.project_feature.update!( + @project.project_feature.slice(ProjectFeature::FEATURES.map { |f| "#{f}_access_level" }) + ) new_project end |