Skip to content

Commit

Permalink
s3: allow private and public-read default ACL
Browse files Browse the repository at this point in the history
  • Loading branch information
neolynx committed Jan 6, 2024
1 parent ba11028 commit ff07d2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions s3/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
}
Expand Down

0 comments on commit ff07d2b

Please sign in to comment.