• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/Access/Rule/VariableRule.php
  • Класс: BitrixCatalogAccessRuleVariableRule
  • Вызов: VariableRule::check
protected function check($params): bool
{
	/** @var ?array $values */
	$values = $this->getPermissionMultiValues($params);
	if (!$values)
	{
		return false;
	}

	if (
		(!isset($params['value']) && !empty($values))
		|| in_array($this->getAllValue(), $values, true)
	)
	{
		return true;
	}

	$checkStoreIds = (array)($params['value'] ?? []);

	return empty(
		array_diff($checkStoreIds, $values)
	);
}