Hi,
The "Only with products" indeed doesn't take into account the user groups restrictions on the products.
That's something we can add and I think it's a good idea to add it.
For that, try to replace the code:
$additional_condition = $config->get('show_out_of_stock', 1) ? '' : ' AND p.product_quantity != 0';
by:
$filters = array();
if(!$config->get('show_out_of_stock', 1)) {
$filters[] = 'p.product_quantity != 0';
}
$additional_condition = '';
hikashop_addACLFilters($filters, 'product_access', 'p');
if(count($filters))
$additional_condition = ' AND ' . implode(' AND ', $filters);
in the file components/com_hikashop/views/category/view.html.php and that should hopefully do it.
Let us know how it goes. If it works fine, we can add that on our end for the next version of HikaShop so that you won't have to redo the change on each update of HikaShop.