mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-22 11:08:20 +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,
|
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