refactor(server): permission (#10449)
This commit is contained in:
1 parent
bf7b1646b3
commit
61162c59fc
61 files changed
+2680
-3562
No files matched your search
@@ -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