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.
Merge branch 'ney-bug-5456' into components-5.14.x