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
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/helm_packages.rb')
-rw-r--r--lib/api/helm_packages.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/helm_packages.rb b/lib/api/helm_packages.rb
index 8260d8a88f8..c811f47cb5b 100644
--- a/lib/api/helm_packages.rb
+++ b/lib/api/helm_packages.rb
@@ -75,6 +75,8 @@ module API
requires :file_name, type: String, desc: 'Helm package file name', documentation: { example: 'mychart' }
end
get ":channel/charts/:file_name.tgz" do
+ not_found!("Format #{params[:format]}") unless params[:format].nil?
+
project = authorized_user_project(action: :read_package)
authorize_read_package!(project)