public function canEdit($member = null)
    {
        if (!$member) {
            $member = Security::getCurrentUser();
        }

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

        if (Permission::checkMember($member, self::EDIT_ALL)) {
            return true;
        }

        // Check inherited permissions
        return static::getPermissionChecker()
            ->canEdit($this->ID, $member);
    }
public function canEdit($member = null)
    {
        if (!$member) {
            $member = Security::getCurrentUser();
        }

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

        if (Permission::checkMember($member, self::EDIT_ALL)) {
            return true;
        }

        // Check inherited permissions
        return static::getPermissionChecker()
            ->canEdit($this->ID, $member);
    }
public function canEdit ( $ member = null ) { if ( ! $ member ) { $ member = Security :: getCurrentUser ( ) ; } $ result = $ this -> extendedCan ( 'canEdit' , $ member ) ; if ( $ result !== null ) { return $ result ; } if ( Permission :: checkMember ( $ member , self :: EDIT_ALL ) ) { return true ; } // Check inherited permissions return static :: getPermissionChecker ( ) -> canEdit ( $ this -> ID , $ member ) ; }
Check if this file can be modified

@param Member $member
@return boolean
Check if this file can be modified