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-01-10 23:37:25 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-01-10 23:37:52 +0300
commitc6983662116bcf5313cca0165499f14345788c28 (patch)
tree8d31e97edc29cc8abdb6ded6867b9af567d5d03e /lib/api/projects.rb
parent1eef146c2d1de19d4e995d421e5787053e50db80 (diff)
Add latest changes from gitlab-org/security/gitlab@14-6-stable-ee
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 67f0b7af7a9..887c76941cf 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -613,6 +613,7 @@ module API
source_project = Project.find_by_id(params[:project_id])
not_found!('Project') unless source_project && can?(current_user, :read_project, source_project)
+ forbidden!('Project') unless source_project && can?(current_user, :admin_project_member, source_project)
result = ::Members::ImportProjectTeamService.new(current_user, params).execute