Skip to content

Commit 069b2e3

Browse files
nshirodriesvints
andauthored
[9.x] Respect the visibility of the local driver (#40734)
* Fix ensure that the visibility of the local driver is taken into account * Update src/Illuminate/Filesystem/FilesystemManager.php Co-authored-by: Dries Vints <[email protected]>
1 parent d935b65 commit 069b2e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Illuminate/Filesystem/FilesystemManager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ protected function callCustomCreator(array $config)
169169
public function createLocalDriver(array $config)
170170
{
171171
$visibility = PortableVisibilityConverter::fromArray(
172-
$config['permissions'] ?? []
172+
$config['permissions'] ?? [],
173+
$config['directory_visibility'] ?? $config['visibility'] ?? Visibility::PRIVATE
173174
);
174175

175176
$links = ($config['links'] ?? null) === 'skip'

0 commit comments

Comments
 (0)