]> _ Git - psq.git/commitdiff
wait #7908 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 19 Dec 2025 19:37:31 +0000 (20:37 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 19 Dec 2025 19:37:31 +0000 (20:37 +0100)
app/Http/Controllers/Controller.php

index 48ac3799ceee9a7be6fdf39c592611542d9974c4..fdaa18342ce572ccd9ebc637067ed7f2932ace55 100644 (file)
@@ -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();
     }
 }