summaryrefslogtreecommitdiff
path: root/lib/api/rubygem_packages.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/rubygem_packages.rb')
-rw-r--r--lib/api/rubygem_packages.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/rubygem_packages.rb b/lib/api/rubygem_packages.rb
index 85bbd0879b7..85d6f0c5a9b 100644
--- a/lib/api/rubygem_packages.rb
+++ b/lib/api/rubygem_packages.rb
@@ -65,7 +65,7 @@ module API
requires :file_name, type: String, desc: 'Package file name'
end
get "gems/:file_name", requirements: FILE_NAME_REQUIREMENTS do
- authorize!(:read_package, user_project)
+ authorize_read_package!(user_project)
package_files = ::Packages::PackageFile
.for_rubygem_with_file_name(user_project, params[:file_name])