mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-15 10:07:24 +00:00
s3: respect default ACLs
This commit is contained in:
1 parent
1b6e5e5b3b
commit
ebd5aa5fe9
1 file changed
+3
-2
+3
-2
@@ -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