• Модуль: catalogmobile
  • Путь к файлу: ~/bitrix/modules/catalogmobile/lib/Controller/StoreDocumentDetails.php
  • Класс: BitrixCatalogMobileControllerStoreDocumentDetails
  • Вызов: StoreDocumentDetails::checkDocumentModifyRights
private 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])
			)
		)
	);
}