• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/Access/Component/PermissionConfig.php
  • Класс: BitrixCatalogAccessComponentPermissionConfig
  • Вызов: PermissionConfig::getCatalogSettingsSection
private function getCatalogSettingsSection(): array
{
	$result = [
		PermissionDictionary::CATALOG_SETTINGS_PRODUCT_CARD_EDIT,
		PermissionDictionary::CATALOG_SETTINGS_PRODUCT_CARD_SET_PROFILE_FOR_USERS,
		PermissionDictionary::CATALOG_VAT_MODIFY,
		PermissionDictionary::CATALOG_MEASURE_MODIFY,
		PermissionDictionary::CATALOG_PRICE_GROUP_MODIFY,
		PermissionDictionary::CATALOG_PRODUCT_PRICE_EXTRA_EDIT,
	];

	$onlyBox = !ModuleManager::isModuleInstalled('bitrix24');
	if ($onlyBox)
	{
		array_push($result, ...[
			PermissionDictionary::CATALOG_IMPORT_EDIT,
			PermissionDictionary::CATALOG_EXPORT_EDIT,
		]);
	}

	return $result;
}