original_string: protected function setCurrentOrganizationTo(\Gems_User_User $user)
      {
          if ($this->currentUser !== $user) {
              $this->currentUser->setCurrentOrganization($user->getCurrentOrganization());
          }
      }
code: protected function setCurrentOrganizationTo(\Gems_User_User $user)
      {
          if ($this->currentUser !== $user) {
              $this->currentUser->setCurrentOrganization($user->getCurrentOrganization());
          }
      }
code_tokens: protected function setCurrentOrganizationTo ( \ Gems_User_User $ user ) { if ( $ this -> currentUser !== $ user ) { $ this -> currentUser -> setCurrentOrganization ( $ user -> getCurrentOrganization ( ) ) ; } }
docstring: Helper function to safely switch org during login
  
  @param \Gems_User_User $user
docstring_tokens: Helper function to safely switch org during login