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