• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/components/itemdetail.php
  • Класс: BitrixRpaComponentsItemDetail
  • Вызов: ItemDetail::checkAccess
protected function checkAccess(): Result
{
	if($this->item->getId() > 0)
	{
		$command = Driver::getInstance()->getFactory()->getUpdateCommand($this->item);
	}
	else
	{
		$command = Driver::getInstance()->getFactory()->getAddCommand($this->item);
	}

	return $command->checkAccess();
}