parent
76b1fcbf27
commit
3b7905364f
|
@ -507,8 +507,10 @@ class AmazonS3 extends \OC\Files\Storage\Common {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test() {
|
public function test() {
|
||||||
$test = $this->s3->get_canonical_user_id();
|
$test = $this->connection->getBucketAcl(array(
|
||||||
if (isset($test['id']) && $test['id'] != '') {
|
'Bucket' => $this->bucket,
|
||||||
|
));
|
||||||
|
if (isset($test) && !is_null($test->getPath('Owner/ID'))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue