Background
After establishing a WebSocket connection, the backend will check the current user’s permissions. If the current user does not have editing permission, all uploaded packets from the client will be discarded.
Requirement
Allows users to modify documents without editing permission, such as by creating a comment.
Problem
The back-end service discards any changes made by the user in read-only mode, so they cannot be persisted.
How to solve this problem safely and gracefully?
We look forward to your suggestions.