Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
added custom acl
Browse files Browse the repository at this point in the history
  • Loading branch information
aureliosaraiva committed Sep 20, 2023
1 parent af286f2 commit 5f7f4d4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/AwsS3Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,17 @@ protected function getOptionsFromConfig(Config $config)
{
$options = $this->options;

if ($visibility = $config->get('visibility')) {
$bucketAcl = array(
'creditoo-us' => 'bucket-owner-full-control'
);

$changedAcl = isset($bucketAcl[$this->bucket]);

if ($changedAcl) {
$options['ACL'] = $bucketAcl[$this->bucket];
}

if (!isset($options['ACL']) && $visibility = $config->get('visibility')) {
// For local reference
$options['visibility'] = $visibility;
// For external reference
Expand Down

0 comments on commit 5f7f4d4

Please sign in to comment.