mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
fix(server): batch grant page roles (#10007)
This commit is contained in:
@@ -987,7 +987,7 @@ test('should be able to grant and revoke doc user role', async t => {
|
||||
revokeDocUserRoles(input: {
|
||||
workspaceId: "${ws.id}",
|
||||
docId: "${pageId}",
|
||||
userIds: ["${external.id}"]
|
||||
userId: "${external.id}"
|
||||
})
|
||||
}
|
||||
`,
|
||||
@@ -1010,7 +1010,7 @@ test('should be able to grant and revoke doc user role', async t => {
|
||||
revokeDocUserRoles(input: {
|
||||
workspaceId: "${ws.id}",
|
||||
docId: "${pageId}",
|
||||
userIds: ["${read.id}"]
|
||||
userId: "${read.id}"
|
||||
})
|
||||
}
|
||||
`,
|
||||
@@ -1019,7 +1019,7 @@ test('should be able to grant and revoke doc user role', async t => {
|
||||
t.like(externalRes.body, {
|
||||
errors: [
|
||||
{
|
||||
message: `You do not have permission to access Space ${ws.id}.`,
|
||||
message: `You do not have permission to access doc ${pageId} under Space ${ws.id}.`,
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user