feat(catalog): omit hidden products before pagination

This commit is contained in:
2026-08-24 15:15:55 -03:00
parent 2323994f30
commit e27f7bb166
7 changed files with 112 additions and 46 deletions

View File

@@ -71,6 +71,8 @@ class FeaturedGroupService
'bundleComponents.variant.catalogItem',
]);
$query = $this->allowances->applyProductVisibilityPolicy($query);
return match ($featuredGroup->source_type) {
FeaturedGroupSource::Manual => $query
->select('catalog_items.*')