lib/models/DeleteForm.php
public function canDeleteObject()
    {
        if ($this->object->objectType->hasDashboard && isset($this->relationship) && !$this->relationship->isHasOne()) {
            return false;
        }

        return $this->object->can('delete');
    }
public function canDeleteObject()
    {
        if ($this->object->objectType->hasDashboard && isset($this->relationship) && !$this->relationship->isHasOne()) {
            return false;
        }

        return $this->object->can('delete');
    }
public function canDeleteObject ( ) { if ( $ this -> object -> objectType -> hasDashboard && isset ( $ this -> relationship ) && ! $ this -> relationship -> isHasOne ( ) ) { return false ; } return $ this -> object -> can ( 'delete' ) ; }
[[@doctodo method_description:canDeleteObject]].

@return [[@doctodo return_type:canDeleteObject]] [[@doctodo return_description:canDeleteObject]]
[[ @doctodo method_description : canDeleteObject ]] .