summaryrefslogtreecommitdiff
path: root/lib/ci
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-11-22 14:27:30 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2015-11-23 13:05:22 +0100
commit11728b50f96a296c760d9e69273d304f92e51f8f (patch)
treead5857ebeb7db44b4fa48e51b72001a4e1efa205 /lib/ci
parent7b70a03e44559900921f06464ff6422d4ed15712 (diff)
downloadgitlab-ce-11728b50f96a296c760d9e69273d304f92e51f8f.tar.gz
Expose artifacts pathci-artifacts-path
Diffstat (limited to 'lib/ci')
-rw-r--r--lib/ci/api/builds.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ci/api/builds.rb b/lib/ci/api/builds.rb
index 0a586672807..15faa6edd84 100644
--- a/lib/ci/api/builds.rb
+++ b/lib/ci/api/builds.rb
@@ -58,6 +58,7 @@ module Ci
# POST /builds/:id/artifacts/authorize
post ":id/artifacts/authorize" do
require_gitlab_workhorse!
+ not_allowed! unless Gitlab.config.artifacts.enabled
build = Ci::Build.find_by_id(params[:id])
not_found! unless build
authenticate_build_token!(build)
@@ -91,6 +92,7 @@ module Ci
# POST /builds/:id/artifacts
post ":id/artifacts" do
require_gitlab_workhorse!
+ not_allowed! unless Gitlab.config.artifacts.enabled
build = Ci::Build.find_by_id(params[:id])
not_found! unless build
authenticate_build_token!(build)