From e70ac2c96fb2d380b4498c6ff2b36378c59b0023 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 19 Dec 2025 20:37:31 +0100 Subject: [PATCH] wait #7908 @0.5 --- app/Http/Controllers/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php index 48ac379..fdaa183 100644 --- a/app/Http/Controllers/Controller.php +++ b/app/Http/Controllers/Controller.php @@ -93,6 +93,6 @@ class Controller extends BaseController }, $typeSenseResults['hits']); $pdfFile = new PdfFile(); - return $pdfFile->whereIn('slug', $refs)->orderBy('created_at', 'desc')->get()->toArray(); + return $pdfFile->whereIn('slug', $refs)->where('published', 1)->orderBy('created_at', 'desc')->get()->toArray(); } } -- 2.39.5