• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/grid/column/productprovider.php
  • Класс: BitrixCatalogGridColumnProductProvider
  • Вызов: ProductProvider::allowedShowQuantityColumns
static function allowedShowQuantityColumns(): bool
{
	if (!Loader::includeModule('crm'))
	{
		return true;
	}

	if (!CatalogConfigState::isUsedInventoryManagement())
	{
		return true;
	}
	$allowedStores = CatalogAccessAccessController::getCurrent()->getPermissionValue(
		CatalogAccessActionDictionary::ACTION_STORE_VIEW
	);
	if (!empty($allowedStores))
	{
		return true;
	}

	return false;
}