diff --git a/app/Http/Controllers/ActionlogController.php b/app/Http/Controllers/ActionlogController.php index 7f86bff9643..f2580c96fc6 100644 --- a/app/Http/Controllers/ActionlogController.php +++ b/app/Http/Controllers/ActionlogController.php @@ -42,13 +42,11 @@ public function getStoredEula($filename) : Response | BinaryFileResponse | Redir $this->authorize('view', \App\Models\Asset::class); $file = config('app.private_uploads').'/eula-pdfs/'.$filename; - if (Storage::exists($file)) { + if (Storage::exists('private_uploads/eula-pdfs/'.$filename)) { return response()->download($file); } return redirect()->back()->with('error', trans('general.file_does_not_exist')); - - } }