s3: respect default ACLs

This commit is contained in:
André Roth
2024-01-02 20:10:01 +01:00
parent 1b6e5e5b3b
commit ebd5aa5fe9

View File

@@ -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 = ""
}