fixing bug #5456 : the right document version is now open according to folder rights
Bug #5456 : adjusting the checks by using the new useful method provided by SimpleDocument class (that is representing an attachment) : canBeAccessedBy(final UserDetail user).
This method calls the centralized document access control service.