• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/controller/document/element.php
  • Класс: BitrixCatalogControllerDocumentElement
  • Вызов: Element::checkStoresAccess
private function checkStoresAccess(int $id, array $fields = []): bool
{
	$fields['ID'] = $id;

	$can = AccessController::getCurrent()->check(
		ActionDictionary::ACTION_STORE_VIEW,
		StoreDocumentElement::createFromArray($fields)
	);
	if (!$can)
	{
		$this->setDocumentRightsError();

		return false;
	}

	return true;
}