mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
refactor(server): separate page visibility from workspace permission (#4836)
This commit is contained in:
@@ -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