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:
@@ -92,7 +92,7 @@ export async function addUserToWorkspace(
|
||||
if (workspace == null) {
|
||||
throw new Error(`workspace ${workspaceId} not found`);
|
||||
}
|
||||
await client.workspaceUserPermission.create({
|
||||
await client.workspaceUserRole.create({
|
||||
data: {
|
||||
workspaceId: workspace.id,
|
||||
userId,
|
||||
|
||||
Reference in New Issue
Block a user