• Модуль: catalogmobile
  • Путь к файлу: ~/bitrix/modules/catalogmobile/lib/Controller/StoreDocumentDetails.php
  • Класс: BitrixCatalogMobileControllerStoreDocumentDetails
  • Вызов: StoreDocumentDetails::checkDocumentReadRights
private function checkDocumentReadRights(int $entityId = null, string $docType = null): bool
{
	return (
		$this->checkDocumentBaseRights()
		&& $this->accessController->check(
			ActionDictionary::ACTION_STORE_DOCUMENT_VIEW,
			(
			$entityId
				? AccessModelStoreDocument::createFromId($entityId)
				: AccessModelStoreDocument::createFromArray(['DOC_TYPE' => $docType])
			)
		)
	);
}