kernel/classes/ezcontentobjecttreenode.php
public function isNodeTrashAllowed()
    {
        $userClassIDArray = eZUser::contentClassIDs();

        $class = $this->attribute( 'object' )->attribute( 'content_class' );

        // If current object has ezuser attributes, it can't be sent to trash
        if ( in_array( $class->attribute( 'id' ), $userClassIDArray ) )
        {
            return false;
        }

        // Checking for children using classes with ezuser attribute. Using == because subTreecount returns strings
        return $this->subTreeCount(
                    array(
                        'Limitation' => array(),
                        'SortBy' => array( 'path' , false ),
                        'IgnoreVisibility' => true,
                        'ClassFilterType' => 'include',
                        'ClassFilterArray' => $userClassIDArray,
                        'AsObject' => false
                    )
                ) == 0 ;
    }
public function isNodeTrashAllowed()
    {
        $userClassIDArray = eZUser::contentClassIDs();

        $class = $this->attribute( 'object' )->attribute( 'content_class' );

        // If current object has ezuser attributes, it can't be sent to trash
        if ( in_array( $class->attribute( 'id' ), $userClassIDArray ) )
        {
            return false;
        }

        // Checking for children using classes with ezuser attribute. Using == because subTreecount returns strings
        return $this->subTreeCount(
                    array(
                        'Limitation' => array(),
                        'SortBy' => array( 'path' , false ),
                        'IgnoreVisibility' => true,
                        'ClassFilterType' => 'include',
                        'ClassFilterArray' => $userClassIDArray,
                        'AsObject' => false
                    )
                ) == 0 ;
    }
public function isNodeTrashAllowed ( ) { $ userClassIDArray = eZUser :: contentClassIDs ( ) ; $ class = $ this -> attribute ( 'object' ) -> attribute ( 'content_class' ) ; // If current object has ezuser attributes, it can't be sent to trash if ( in_array ( $ class -> attribute ( 'id' ) , $ userClassIDArray ) ) { return false ; } // Checking for children using classes with ezuser attribute. Using == because subTreecount returns strings return $ this -> subTreeCount ( array ( 'Limitation' => array ( ) , 'SortBy' => array ( 'path' , false ) , 'IgnoreVisibility' => true , 'ClassFilterType' => 'include' , 'ClassFilterArray' => $ userClassIDArray , 'AsObject' => false ) ) == 0 ; }
Figure out if a node can be sent to trash or if it should be directly deleted as objects
containing ezuser attributes can not be sent to trash.

@return bool true if it can go to trash, false if it should be deleted
Figure out if a node can be sent to trash or if it should be directly deleted as objects containing ezuser attributes can not be sent to trash .