fixing bug #5456

the right document version is now open according to folder rights