diff --git a/application/forms/ProcessForm.php b/application/forms/ProcessForm.php index fa2fa57c..856662a5 100644 --- a/application/forms/ProcessForm.php +++ b/application/forms/ProcessForm.php @@ -160,15 +160,6 @@ protected function onRequest() } } - protected function getNode(BpConfig $bp, $nodeName) - { - if ($nodeName) { - return $bp->getNode($nodeName); - } else { - return null; - } - } - public function onSuccess() { $changes = ProcessChanges::construct($this->bp, $this->session); diff --git a/library/Businessprocess/Renderer/TileRenderer/NodeTile.php b/library/Businessprocess/Renderer/TileRenderer/NodeTile.php index 67bb4a62..b8c7432e 100644 --- a/library/Businessprocess/Renderer/TileRenderer/NodeTile.php +++ b/library/Businessprocess/Renderer/TileRenderer/NodeTile.php @@ -338,7 +338,7 @@ protected function addActionLinks() } } - if ($this->renderer->getBusinessProcess()->getMetadata()->canModify()) { + if ($this->renderer->getBusinessProcess()->getMetadata()->canModify() && $this->node instanceof ImportedNode) { $params = array( 'action' => 'delete', 'deletenode' => $this->node->getName(),