mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
chore(server): revert doc write restriction (#10807)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user