mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-11 03:11:50 +00:00
s3: respect default ACLs
This commit is contained in:
@@ -66,10 +66,11 @@ func NewPublishedStorageRaw(
|
||||
plusWorkaround, disabledMultiDel, forceVirtualHostedStyle bool,
|
||||
config *aws.Config,
|
||||
) (*PublishedStorage, error) {
|
||||
|
||||
var acl types.ObjectCannedACL
|
||||
if defaultACL == "" {
|
||||
if defaultACL == "" || defaultACL == "private" {
|
||||
acl = types.ObjectCannedACLPrivate
|
||||
} else if defaultACL == "public-read" {
|
||||
acl = types.ObjectCannedACLPublicRead
|
||||
} else if defaultACL == "none" {
|
||||
acl = ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user