protected function setCurrentOrganizationTo(\Gems_User_User $user)
    {
        if ($this->currentUser !== $user) {
            $this->currentUser->setCurrentOrganization($user->getCurrentOrganization());
        }
    }
protected function setCurrentOrganizationTo(\Gems_User_User $user)
    {
        if ($this->currentUser !== $user) {
            $this->currentUser->setCurrentOrganization($user->getCurrentOrganization());
        }
    }
protected function setCurrentOrganizationTo ( \ Gems_User_User $ user ) { if ( $ this -> currentUser !== $ user ) { $ this -> currentUser -> setCurrentOrganization ( $ user -> getCurrentOrganization ( ) ) ; } }
Helper function to safely switch org during login

@param \Gems_User_User $user
Helper function to safely switch org during login