ezsystems/ezpublish — pull request #376 by patrickallaert (2012-07-27 14:00:55+00:00)
Title: Fixed #019002: rest api: session always created even for anon users

Avoid setting the current user if not needed. This regenerated/initialize session.