Open MentalGear opened 4 months ago
You would just return a sensible error code to Member D and handle that client-side (show some alert for example), just as with a traditional HTTP API.
If you put access control rules in the middleware on the server, the changes from Member D will be sent to the server but not actually ever applied to the document.
See the docs here: https://share.github.io/sharedb/middleware/op-submission#apply
A very fine project! I'm new to OT/CRDT, and I was wondering how/if a (central) user/role/group permission based access control can be added?
For example, for a Notes PoC. Also, how would conflicts like these be handled?
note Test
. Member D opens it.note Test
toprivate
(not accessible by D)note Test
, and various other edits toother notes