Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
1f5b9060
Commit
1f5b9060
authored
Mar 15, 2021
by
David Fernandez
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'public_generic_packages' into 'master'
Public generic packages See merge request gitlab-org/gitlab!55978
parents
4e4ca479
c0fa3efe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
changelogs/unreleased/public_generic_packages.yml
changelogs/unreleased/public_generic_packages.yml
+5
-0
lib/api/generic_packages.rb
lib/api/generic_packages.rb
+1
-1
spec/requests/api/generic_packages_spec.rb
spec/requests/api/generic_packages_spec.rb
+5
-5
No files found.
changelogs/unreleased/public_generic_packages.yml
0 → 100644
View file @
1f5b9060
---
title
:
Public generic packages can now be accessed by developer, guest and anonymous users
merge_request
:
55978
author
:
Mathieu Parent
type
:
changed
lib/api/generic_packages.rb
View file @
1f5b9060
...
@@ -13,7 +13,7 @@ module API
...
@@ -13,7 +13,7 @@ module API
before
do
before
do
require_packages_enabled!
require_packages_enabled!
authenticate!
authenticate
_non_get
!
require_generic_packages_available!
require_generic_packages_available!
end
end
...
...
spec/requests/api/generic_packages_spec.rb
View file @
1f5b9060
...
@@ -444,17 +444,17 @@ RSpec.describe API::GenericPackages do
...
@@ -444,17 +444,17 @@ RSpec.describe API::GenericPackages do
'PUBLIC'
|
:guest
|
true
|
:user_basic_auth
|
:success
'PUBLIC'
|
:guest
|
true
|
:user_basic_auth
|
:success
'PUBLIC'
|
:developer
|
true
|
:invalid_personal_access_token
|
:unauthorized
'PUBLIC'
|
:developer
|
true
|
:invalid_personal_access_token
|
:unauthorized
'PUBLIC'
|
:guest
|
true
|
:invalid_personal_access_token
|
:unauthorized
'PUBLIC'
|
:guest
|
true
|
:invalid_personal_access_token
|
:unauthorized
'PUBLIC'
|
:developer
|
true
|
:invalid_user_basic_auth
|
:
unauthorized
'PUBLIC'
|
:developer
|
true
|
:invalid_user_basic_auth
|
:
success
'PUBLIC'
|
:guest
|
true
|
:invalid_user_basic_auth
|
:
unauthorized
'PUBLIC'
|
:guest
|
true
|
:invalid_user_basic_auth
|
:
success
'PUBLIC'
|
:developer
|
false
|
:personal_access_token
|
:success
'PUBLIC'
|
:developer
|
false
|
:personal_access_token
|
:success
'PUBLIC'
|
:guest
|
false
|
:personal_access_token
|
:success
'PUBLIC'
|
:guest
|
false
|
:personal_access_token
|
:success
'PUBLIC'
|
:developer
|
false
|
:user_basic_auth
|
:success
'PUBLIC'
|
:developer
|
false
|
:user_basic_auth
|
:success
'PUBLIC'
|
:guest
|
false
|
:user_basic_auth
|
:success
'PUBLIC'
|
:guest
|
false
|
:user_basic_auth
|
:success
'PUBLIC'
|
:developer
|
false
|
:invalid_personal_access_token
|
:unauthorized
'PUBLIC'
|
:developer
|
false
|
:invalid_personal_access_token
|
:unauthorized
'PUBLIC'
|
:guest
|
false
|
:invalid_personal_access_token
|
:unauthorized
'PUBLIC'
|
:guest
|
false
|
:invalid_personal_access_token
|
:unauthorized
'PUBLIC'
|
:developer
|
false
|
:invalid_user_basic_auth
|
:
unauthorized
'PUBLIC'
|
:developer
|
false
|
:invalid_user_basic_auth
|
:
success
'PUBLIC'
|
:guest
|
false
|
:invalid_user_basic_auth
|
:
unauthorized
'PUBLIC'
|
:guest
|
false
|
:invalid_user_basic_auth
|
:
success
'PUBLIC'
|
:anonymous
|
false
|
:none
|
:
unauthorized
'PUBLIC'
|
:anonymous
|
false
|
:none
|
:
success
'PRIVATE'
|
:developer
|
true
|
:personal_access_token
|
:success
'PRIVATE'
|
:developer
|
true
|
:personal_access_token
|
:success
'PRIVATE'
|
:guest
|
true
|
:personal_access_token
|
:forbidden
'PRIVATE'
|
:guest
|
true
|
:personal_access_token
|
:forbidden
'PRIVATE'
|
:developer
|
true
|
:user_basic_auth
|
:success
'PRIVATE'
|
:developer
|
true
|
:user_basic_auth
|
:success
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment