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