lib/models/DeleteForm.php
public function canDeleteRelation()
    {
        if (isset($this->relationModel)) {
            if (!$this->object->allowRogue($this->relationModel)) {
                return false;
            }
            if (!$this->object->canDeleteAssociation($this->relationshipWith)) {
                return false;
            }

            return true;
        }

        return false;
    }
public function canDeleteRelation()
    {
        if (isset($this->relationModel)) {
            if (!$this->object->allowRogue($this->relationModel)) {
                return false;
            }
            if (!$this->object->canDeleteAssociation($this->relationshipWith)) {
                return false;
            }

            return true;
        }

        return false;
    }
[[@doctodo method_description:canDeleteRelation]].

@return [[@doctodo return_type:canDeleteRelation]] [[@doctodo return_description:canDeleteRelation]]