feat(catalog): omit hidden products before pagination
This commit is contained in:
@@ -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.*')
|
||||
|
||||
Reference in New Issue
Block a user