By default, the properties are displayed, for example, in this file /bitrix/templates/template/components/bitrix/news.detail/catalog/template.php like this:
<?if($arResult["PROPERTIES"]["test123"]["VALUE"]):?> <div class="project-top__parameter-item"> <div class="project-top__parameter-name"> <?=$arResult["PROPERTIES"]["test123"]["NAME"]?> </div> <div class="project-top__parameter-line"></div> <div class="project-top__parameter-size"> <?=$arResult["PROPERTIES"]["test123"]["VALUE"]?> </div> </div> <?endif;?>
where test123 is a product property. If you need to hide this property for all groups, for example, except for Admins (1) and Content Managers (5), then the entire construction above needs to be wrapped in:
<?if (CSite::InGroup(array(1,5))):?> <?endif;?>
As a result, the property should look like this:
<?if (CSite::InGroup(array(1,5))):?> <?if($arResult["PROPERTIES"]["test123"]["VALUE"]):?> <div class="project-top__parameter-item"> <div class="project-top__parameter-name"> <?=$arResult["PROPERTIES"]["test123"]["NAME"]?> </div> <div class="project-top__parameter-line"></div> <div class="project-top__parameter-size"> <?=$arResult["PROPERTIES"]["test123"]["VALUE"]?> </div> </div> <?endif;?> <?endif;?>