We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AssetContainer::accessible()
1 parent e780e93 commit 4be5849Copy full SHA for 4be5849
src/Assets/AssetContainer.php
@@ -489,7 +489,10 @@ public function assetFolder($path)
489
*/
490
public function accessible()
491
{
492
- return Arr::get($this->disk()->filesystem()->getConfig(), 'url') !== null;
+ $config = $this->disk()->filesystem()->getConfig();
493
+
494
+ return Arr::get($config, 'url') !== null
495
+ && Arr::get($config, 'visibility', 'public') === 'public';
496
}
497
498
/**
0 commit comments