src/Model/Comment.php
public function canDelete($member = null)
    {
        $member = $this->getMember($member);

        if (!$member) {
            return false;
        }

        $extended = $this->extendedCan('canDelete', $member);
        if ($extended !== null) {
            return $extended;
        }

        return $this->canEdit($member);
    }
public function canDelete($member = null)
    {
        $member = $this->getMember($member);

        if (!$member) {
            return false;
        }

        $extended = $this->extendedCan('canDelete', $member);
        if ($extended !== null) {
            return $extended;
        }

        return $this->canEdit($member);
    }
public function canDelete ( $ member = null ) { $ member = $ this -> getMember ( $ member ) ; if ( ! $ member ) { return false ; } $ extended = $ this -> extendedCan ( 'canDelete' , $ member ) ; if ( $ extended !== null ) { return $ extended ; } return $ this -> canEdit ( $ member ) ; }
Checks if the comment can be deleted.

@param null|int|Member $member
@return Boolean
Checks if the comment can be deleted .