Fix the bug with the visibility of documents from different users.