Skip to content

Commit 4be5849

Browse files
committed
AssetContainer::accessible() should take filesystem visibility into account
1 parent e780e93 commit 4be5849

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Assets/AssetContainer.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,10 @@ public function assetFolder($path)
489489
*/
490490
public function accessible()
491491
{
492-
return Arr::get($this->disk()->filesystem()->getConfig(), 'url') !== null;
492+
$config = $this->disk()->filesystem()->getConfig();
493+
494+
return Arr::get($config, 'url') !== null
495+
&& Arr::get($config, 'visibility', 'public') === 'public';
493496
}
494497

495498
/**

0 commit comments

Comments
 (0)