From 187e231c0e3da94961e08c6fd14a5af8dd530e5c Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 15 Nov 2024 13:18:15 +0000 Subject: [PATCH] Fixed #15825 Signed-off-by: snipe --- app/Http/Controllers/ActionlogController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Http/Controllers/ActionlogController.php b/app/Http/Controllers/ActionlogController.php index 7f86bff964..f2580c96fc 100644 --- a/app/Http/Controllers/ActionlogController.php +++ b/app/Http/Controllers/ActionlogController.php @@ -42,13 +42,11 @@ class ActionlogController extends Controller $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')); - - } }