The issue is related to the application-collabora integration of Collabora Online in XWiki, where the rights of a user over a document are not properly enforced. Specifically, when a user opens an attachment file in edit mode, this right is preserved for all future users until the editing session is closed, even if some of them only have view rights. The Collabora server is responsible for issuing this request, and it appears that the `userCanWrite` query parameter is cached.