diff --git a/backend/app/Utils/Utils.php b/backend/app/Utils/Utils.php index 189a3d7..72022f2 100644 --- a/backend/app/Utils/Utils.php +++ b/backend/app/Utils/Utils.php @@ -188,7 +188,7 @@ public static function getCategoryDetail($category) { */ public static function getCategoryDetailWithRessources($category) { $categoryData = self::getCategoryData($category); - $ressources = Ressource::where('id_category', $category->id_category)->get(); + $ressources = Ressource::where('id_category', $category->id_category )->where('id_status', 1)->get(); $categoryData['ressources'] = $ressources->map(function ($ressource) { return self::getRessourceDetail($ressource); });