src/Pages/MemberProfilePage.php
public function Link($action = null)
    {
        if (!$action
            && Member::currentUserID()
            && !$this->AllowProfileEditing
            && $this->CanAddMembers()
        ) {
            $action = 'add';
        }

        return parent::Link($action);
    }
public function Link($action = null)
    {
        if (!$action
            && Member::currentUserID()
            && !$this->AllowProfileEditing
            && $this->CanAddMembers()
        ) {
            $action = 'add';
        }

        return parent::Link($action);
    }
public function Link ( $ action = null ) { if ( ! $ action && Member :: currentUserID ( ) && ! $ this -> AllowProfileEditing && $ this -> CanAddMembers ( ) ) { $ action = 'add' ; } return parent :: Link ( $ action ) ; }
If profile editing is disabled, but the current user can add members,
just link directly to the add action.

@param string $action
If profile editing is disabled but the current user can add members just link directly to the add action .