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
path: root/lib/api
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2019-02-27 17:23:47 +0300
committerYorick Peterse <yorickpeterse@gmail.com>2019-02-27 17:23:47 +0300
commit969855d54f243bb09287bc72901f897223bced99 (patch)
tree9b1a0c2c1d7e63f1d7a0f3eb01df6888d939b37a /lib/api
parentb7cfcb5a67c2ab12b2e47f46021be1b0693ab400 (diff)
parent9820da44788bde97700693565fd43f1d5054c007 (diff)
Merge branch 'security-tags-oracle-11-7' into '11-7-stable'
Prevent Releases links API to leak tag existence See merge request gitlab/gitlabhq!2909
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/release/links.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/release/links.rb b/lib/api/release/links.rb
index e3072684ef7..5d1b40e3bff 100644
--- a/lib/api/release/links.rb
+++ b/lib/api/release/links.rb
@@ -8,6 +8,8 @@ module API
RELEASE_ENDPOINT_REQUIREMETS = API::NAMESPACE_OR_PROJECT_REQUIREMENTS
.merge(tag_name: API::NO_SLASH_URL_PART_REGEX)
+ before { authorize! :read_release, user_project }
+
params do
requires :id, type: String, desc: 'The ID of a project'
end