About read-only mode and permissions

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.

Allows users to modify documents without editing permission, such as by creating a comment.

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.

1 Like

I think you need to customize your WebSocket code to fit it.

I made a socket.io provider with permission control months ago. you can read the code here GitHub - TexteaInc/y-socket.io

1 Like

Also, you need discard the update from both the client side and the server side.

1 Like

Thank you for your advice.