mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
refactor(server): permission (#10449)
This commit is contained in:
@@ -419,6 +419,14 @@ export const USER_FRIENDLY_ERRORS = {
|
||||
args: { spaceId: 'string' },
|
||||
message: 'Space should have only one owner.',
|
||||
},
|
||||
owner_can_not_leave_workspace: {
|
||||
type: 'action_forbidden',
|
||||
message: 'Owner can not leave the workspace.',
|
||||
},
|
||||
can_not_revoke_yourself: {
|
||||
type: 'action_forbidden',
|
||||
message: 'You can not revoke your own permission.',
|
||||
},
|
||||
doc_not_found: {
|
||||
type: 'resource_not_found',
|
||||
args: { spaceId: 'string', docId: 'string' },
|
||||
|
||||
Reference in New Issue
Block a user