diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-09-06 14:45:28 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-09-06 14:45:28 +0200 |
commit | ec7a12da818898b278a3e47a9b96ccebafbe5b4c (patch) | |
tree | a2d5bdaa392c843349ea28506bb585aeb6f375ce /lib | |
parent | 3b9f9aa00bc0c3afb65d803c3f7071fa7a113628 (diff) | |
download | gitlab-ce-ec7a12da818898b278a3e47a9b96ccebafbe5b4c.tar.gz |
Revert moving authorization hook in jobs APIfeature/gb/download-single-job-artifact-using-api
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/jobs.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/jobs.rb b/lib/api/jobs.rb index 19161aabd37..3c1c412ba42 100644 --- a/lib/api/jobs.rb +++ b/lib/api/jobs.rb @@ -2,12 +2,12 @@ module API class Jobs < Grape::API include PaginationParams + before { authenticate! } + params do requires :id, type: String, desc: 'The ID of a project' end resource :projects, requirements: API::PROJECT_ENDPOINT_REQUIREMENTS do - before { authenticate! } - helpers do params :optional_scope do optional :scope, types: [String, Array[String]], desc: 'The scope of builds to show', |