• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/Access/Service/RoleRelationService.php
  • Класс: BitrixCatalogAccessServiceRoleRelationService
  • Вызов: RoleRelationService::getRolesByRelations
public function getRolesByRelations(array $relations): ?array
{
	$senderRoleRelations = RoleRelationTable::query()
			->setSelect(['ROLE_ID'])
			->whereIn('RELATION', $relations)
			->exec()
			->fetchAll();

	$roles = [];
	foreach($senderRoleRelations as $relation)
	{
		$roles[] = $relation["ROLE_ID"];
	}

	return $roles;
}