mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +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 { spaceType, spaceId, docId, update } = message;
|
||||||
const adapter = this.selectAdapter(client, spaceType);
|
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(
|
const timestamp = await adapter.push(
|
||||||
spaceId,
|
spaceId,
|
||||||
docId,
|
docId,
|
||||||
|
|||||||
Reference in New Issue
Block a user