Permalink
Browse files

Update elFinder.class.php

in laravel, it will auto change visibility to public during getting the file url
  • Loading branch information...
ihsanberahim committed Aug 4, 2018
1 parent 4aa9b1d commit 886b551e508580eb2a6789dde7ee12bbfb0059d2
Showing with 7 additions and 0 deletions.
  1. +7 −0 php/elFinder.class.php
View
@@ -3549,6 +3549,13 @@ protected function url($args) {
if (($volume = $this->volume($target)) != false) {
if (! $volume->commandDisabled('url')) {
$url = $volume->getContentUrl($target, $options);
foreach(config('elfinder.disks') as $diskName) {
$diskUrl = Storage::disk($diskName)->url('');
$path = str_replace($diskUrl, '', $url);
Storage::disk($diskName)->setVisibility($path, 'public');
}
return $url ? array('url' => $url) : array();
}
}

0 comments on commit 886b551

Please sign in to comment.