mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
feat(server): add blocked state to workspace docs (#10585)
close CLOUD-162
This commit is contained in:
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user