• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/Access/IblockRule/BaseIblockRule.php
  • Класс: BitrixCatalogAccessIblockRuleBaseIblockRule
  • Вызов: BaseIblockRule::check
protected function check($params): bool
{
	$groups = $this->user->getRightGroups();

	$groupData = GroupTable::getList([
			'filter' => ['STRING_ID' => $this->getShopIblockTypes()],
			'select' => ['ID']
		])
		->fetchAll()
	;

	$shopGroupIds = array_column($groupData, 'ID');
	if (!$shopGroupIds)
	{
		return false;
	}

	return !empty(array_intersect($groups, $shopGroupIds));
}