Skip to content

Commit

Permalink
Prefer directory_visibility (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingimmick authored Feb 15, 2022
1 parent 3cdad44 commit c55db04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ObsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function boot(): void
$root = $config['root'] ?? '';
$options = $config['options'] ?? [];
$portableVisibilityConverter = new PortableVisibilityConverter(
$config['visibility'] ?? Visibility::PUBLIC
$config['directory_visibility'] ?? $config['visibility'] ?? Visibility::PUBLIC
);
if (! isset($config['is_cname']) && isset($config['bucket_endpoint'])) {
$config['is_cname'] = $config['bucket_endpoint'];
Expand Down

0 comments on commit c55db04

Please sign in to comment.