summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-05-26 14:29:59 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-26 14:29:59 +0000
commit5bc4a1efecfffbd467d7e2e2f42f3f1bf6e6f030 (patch)
tree81f5111534cc56919e4aeb453fc65462e596b56d /lib/api
parentdf400447bfd5c650b32cc8d75fa80f8cc7099d94 (diff)
downloadgitlab-ce-5bc4a1efecfffbd467d7e2e2f42f3f1bf6e6f030.tar.gz
Add latest changes from gitlab-org/security/gitlab@13-0-stable-ee
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/projects.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 732453cf1c4..f305da681c4 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -444,6 +444,8 @@ module API
not_found!("Source Project") unless fork_from_project
+ authorize! :fork_project, fork_from_project
+
result = ::Projects::ForkService.new(fork_from_project, current_user).execute(user_project)
if result