isGrantedToRemoveNode() public method

Returns TRUE if the currently authenticated user is allowed to remove the given $node
public isGrantedToRemoveNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeInterface
return boolean
 /**
  * @param string $expectedResult
  * @Given /^I should get (TRUE|FALSE) when asking the node authorization service if removal of the node is granted$/
  */
 public function iShouldGetFalseWhenAskingTheNodeAuthorizationServiceIfRemovalOfTheNodeIsGranted($expectedResult)
 {
     if ($this->isolated === true) {
         $this->callStepInSubProcess(__METHOD__, sprintf(' %s %s', 'string', escapeshellarg(trim($expectedResult))));
     } else {
         if ($expectedResult === 'TRUE') {
             if ($this->nodeAuthorizationService->isGrantedToRemoveNode($this->currentNodes[0]) !== true) {
                 Assert::fail('The node authorization service did not return TRUE!');
             }
         } else {
             if ($this->nodeAuthorizationService->isGrantedToRemoveNode($this->currentNodes[0]) !== false) {
                 Assert::fail('The node authorization service did not return FALSE!');
             }
         }
     }
 }