Check if customer is logged in / customer group
This is in reference to Magento 2.4.6 2.\Magento\Customer\Model\Session does not work on product...
Tags: magento2