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

        if (!$member) {
            return false;
        }

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

        if (Permission::checkMember($member, 'CMS_ACCESS_CommentAdmin')) {
            return true;
        }

        if ($parent = $this->Parent()) {
            return $parent->canEdit($member);
        }

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

        if (!$member) {
            return false;
        }

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

        if (Permission::checkMember($member, 'CMS_ACCESS_CommentAdmin')) {
            return true;
        }

        if ($parent = $this->Parent()) {
            return $parent->canEdit($member);
        }

        return false;
    }
public function canEdit ( $ member = null ) { $ member = $ this -> getMember ( $ member ) ; if ( ! $ member ) { return false ; } $ extended = $ this -> extendedCan ( 'canEdit' , $ member ) ; if ( $ extended !== null ) { return $ extended ; } if ( Permission :: checkMember ( $ member , 'CMS_ACCESS_CommentAdmin' ) ) { return true ; } if ( $ parent = $ this -> Parent ( ) ) { return $ parent -> canEdit ( $ member ) ; } return false ; }
Checks if the comment can be edited.

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