refactor(server): permission (#10449)

This commit is contained in:
liuyi
2025-03-05 15:57:00 +08:00
committed by GitHub
parent bf7b1646b3
commit 61162c59fc
61 changed files with 2680 additions and 3562 deletions

View File

@@ -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,