diff options
author | GitLab Release Tools Bot <delivery-team+release-tools@gitlab.com> | 2022-01-11 20:54:59 +0000 |
---|---|---|
committer | GitLab Release Tools Bot <delivery-team+release-tools@gitlab.com> | 2022-01-11 20:54:59 +0000 |
commit | 35e8389fe215c9d1dc27eda99fae0a3f0d8eb902 (patch) | |
tree | a22bf35a25cf42c235794dce6cfcc7901a092961 /lib/api/projects.rb | |
parent | 15995667681000021c37b52f087084db9f3c6048 (diff) | |
parent | a97774c8e1253b4291d085184c681834e3718eb9 (diff) | |
download | gitlab-ce-14-4-stable.tar.gz |
Merge remote-tracking branch 'dev/14-4-stable' into 14-4-stable14-4-stable
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index bb74849a98a..55f28ca5d9d 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -609,6 +609,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 |