refactor(server): permission (#10449)

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

No files matched your search

+1 -1
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,