Skip to content

Commit c53fbc1

Browse files
[5.x] AssetContainer::accessible() should take filesystem visibility into account (#13621)
1 parent e780e93 commit c53fbc1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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)