refactor(server): separate page visibility from workspace permission (#4836)
This commit is contained in:
1 parent
e8987457ab
commit
f491ff94cc
19 files changed
+796
-362
No files matched your search
@@ -79,10 +79,9 @@ export async function addUserToWorkspace(
|
||||
if (workspace == null) {
|
||||
throw new Error(`workspace ${workspaceId} not found`);
|
||||
}
|
||||
await client.userWorkspacePermission.create({
|
||||
await client.workspaceUserPermission.create({
|
||||
data: {
|
||||
workspaceId: workspace.id,
|
||||
subPageId: null,
|
||||
userId,
|
||||
accepted: true,
|
||||
type: permission,
|
||||
|
||||
Reference in new issue
Block a user