ezsystems/ezpublish-kernel — pull request #530 by pspanja (2013-09-26 14:51:46+00:00)
Title: Fixed: first draft requires content/versionread check

This fixes a mistake made in #511.

`ContentInfo::$currentVersionNo` does not always point to a published version.
In case of a first draft, `content/versionread` needs to be checked instead of content/read.

Also added integration test for the case.