feat(server): add blocked state to workspace docs (#10585)

close CLOUD-162
This commit is contained in:
fengmk2
2025-03-05 12:49:33 +00:00
parent 70a0337ea3
commit 43ded6aa38
6 changed files with 55 additions and 9 deletions

View File

@@ -439,6 +439,12 @@ export const USER_FRIENDLY_ERRORS = {
message: ({ docId, action }) =>
`You do not have permission to perform ${action} action on doc ${docId}.`,
},
doc_update_blocked: {
type: 'action_forbidden',
args: { spaceId: 'string', docId: 'string' },
message: ({ spaceId, docId }) =>
`Doc ${docId} under Space ${spaceId} is blocked from updating.`,
},
version_rejected: {
type: 'action_forbidden',
args: { version: 'string', serverVersion: 'string' },