Skip to content

Commit 90b6829

Browse files
committed
Use Object ACL option value when deploying.
1 parent 08c99a4 commit 90b6829

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Deployer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ public function upload_files( string $processed_site_path ) : void {
3939
)
4040
);
4141

42+
$object_acl = Controller::getValue( 's3ObjectACL' );
4243
$put_data = [
4344
'Bucket' => Controller::getValue( 's3Bucket' ),
44-
'ACL' => 'public-read',
45+
'ACL' => $object_acl === '' ? 'public-read' : $object_acl,
4546
];
4647

4748
$cache_control = Controller::getValue( 's3CacheControl' );

0 commit comments

Comments
 (0)