barryvdh / laravel-elfinder

elFinder bundle for Laravel
738 stars 171 forks source link

How does the Access filter work on Disks? #279

Closed promatik closed 4 years ago

promatik commented 4 years ago

I was able to set the access filter to work on a local folder. But not in an S3 Disk. Is there anyway do do this?

promatik commented 4 years ago

The solution is to use the accessControl argument on the disk:

'disks' => [
    'digitalocean' => [
        'alias' => 'Storage',
        'accessControl' => 'App\Http\Middleware\ElfinderAccess::checkAccess',
    ],
],