Skip to content

Commit

Permalink
Merge pull request #164 from jeromegamez/EZP-23003_ezfind_ezlost
Browse files Browse the repository at this point in the history
EZP-23003: Don't regenerate session id when switching users
  • Loading branch information
bdunogier committed Jun 12, 2014
2 parents d79ebcd + a29689d commit 4c4ca9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions search/plugins/ezsolr/ezsolr.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,10 +488,10 @@ function addObject( $contentObject, $commit = true, $commitWithin = 0, $softComm
$anonymousUserID = $this->SiteINI->variable( 'UserSettings', 'AnonymousUserID' );
$currentUserID = eZUser::currentUserID();
$user = eZUser::instance( $anonymousUserID );
eZUser::setCurrentlyLoggedInUser( $user, $anonymousUserID );
eZUser::setCurrentlyLoggedInUser( $user, $anonymousUserID, eZUser::NO_SESSION_REGENERATE );
$anonymousAccess = $contentObject->attribute( 'can_read' );
$user = eZUser::instance( $currentUserID );
eZUser::setCurrentlyLoggedInUser( $user, $currentUserID );
eZUser::setCurrentlyLoggedInUser( $user, $currentUserID, eZUser::NO_SESSION_REGENERATE );
$anonymousAccess = $anonymousAccess ? 'true' : 'false';
}
else
Expand Down

0 comments on commit 4c4ca9b

Please sign in to comment.