Fixed #872. Removed permissions check on old versions of document for version history, because we're not selecting any sensitive fields anyway.