From: Vincent Vanwaelscappel Date: Fri, 19 Dec 2025 19:37:31 +0000 (+0100) Subject: wait #7908 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e70ac2c96fb2d380b4498c6ff2b36378c59b0023;p=psq.git wait #7908 @0.5 --- 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(); } }