There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
chore(server): revert doc write restriction (#10807)
forehalo3db3db0bbca8
diff --git a/packages/backend/server/src/core/sync/gateway.ts b/packages/backend/server/src/core/sync/gateway.tsindex 7923f1f1dd..a6d9c52600 100644--- a/packages/backend/server/src/core/sync/gateway.ts+++ b/packages/backend/server/src/core/sync/gateway.ts@@ -340,7 +340,8 @@ export class SpaceSyncGatewayconst { 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,