fixing bug #5801
fixing bug #5840 : fixing Javascript errors
fixing bug #5842
creating a method to know if a user can publish in at least one folder
fixing bug #5766
preventing NullPointerException when a document have got only a working version
fixing bug #5801 :
- loss of validators is fixed in all cases
- henceforth, a publication not valid (not visible to readers) can not change to draft
Bug #8601 : performing some adjustments