• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/controller/catalog.php
  • Класс: BitrixCatalogControllerCatalog
  • Вызов: Catalog::checkReadPermissionEntity
protected function checkReadPermissionEntity()
{
	$r = new Result();

	$user = CurrentUser::get();
	if(!$user->canDoOperation('view_other_settings') && !$user->canDoOperation('edit_other_settings'))
	{
		$r->addError(new Error('Access Denied', 200040300010));
	}

	if (
		!$this->accessController->check(ActionDictionary::ACTION_CATALOG_READ)
		&& !$this->accessController->check(ActionDictionary::ACTION_CATALOG_SETTINGS_ACCESS)
	)
	{
		$r->addError(new Error('Access Denied', 200040300030));
	}

	return $r;
}