chore(server): revert doc write restriction (#10807)

This commit is contained in:
forehalo
2025-03-13 05:51:19 +00:00
parent 250f3f1efd
commit 3db3db0bbc

View File

@@ -340,7 +340,8 @@ export class SpaceSyncGateway
const { spaceType, spaceId, docId, update } = message;
const adapter = this.selectAdapter(client, spaceType);
await this.ac.user(user.id).doc(spaceId, docId).assert('Doc.Update');
// TODO(@forehalo): change action to 'Doc.Write' after frontend supporting doc revert
await this.ac.user(user.id).doc(spaceId, docId).assert('Doc.Read');
const timestamp = await adapter.push(
spaceId,
docId,