feat: права и инвайты
This commit is contained in:
@@ -20,7 +20,12 @@ async def create_workspace(
|
||||
|
||||
async with self.database.transaction():
|
||||
await self.database.create_workspace(workspace)
|
||||
await self.database.add_user_to_workspace(workspace.id, user_id)
|
||||
membership = await self.database.add_user_to_workspace(workspace.id, user_id)
|
||||
await self.database.set_workspace_user_permissions(
|
||||
membership.id,
|
||||
global_permissions={domain.PermissionKey.ADMIN_FULL},
|
||||
scoped_permissions=[],
|
||||
)
|
||||
|
||||
return dto.CreateWorkspaceOutput(
|
||||
id=workspace.id,
|
||||
|
||||
Reference in New Issue
Block a user