lib/models/DeleteForm.php
public function canEndRelation()
    {
        if (!isset($this->relationModel) || !isset($this->relationship)) {
            return false;
        }
        if (!$this->relationship->temporal) {
            return false;
        }
        if (!$this->object->canUpdateAssociation($this->relationshipWith)) {
            return false;
        }

        return true;
    }
public function canEndRelation()
    {
        if (!isset($this->relationModel) || !isset($this->relationship)) {
            return false;
        }
        if (!$this->relationship->temporal) {
            return false;
        }
        if (!$this->object->canUpdateAssociation($this->relationshipWith)) {
            return false;
        }

        return true;
    }
[[@doctodo method_description:canEndRelation]].

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