- Notifications
You must be signed in to change notification settings - Fork928
Closed
Labels
Milestone
Description
Lines 352 to 370 in993c1a6
}else { | |
// If no organization is provided, add the user to the first | |
// organization. | |
organizations,err:=api.Database.GetOrganizations(ctx) | |
iferr!=nil { | |
httpapi.Write(ctx,rw,http.StatusInternalServerError, codersdk.Response{ | |
Message:"Internal error fetching orgs.", | |
Detail:err.Error(), | |
}) | |
return | |
} | |
iflen(organizations)>0 { | |
// Add the user to the first organization. Once multi-organization | |
// support is added, we should enable a configuration map of user | |
// email to organization. | |
req.OrganizationID=organizations[0].ID | |
} | |
} |
Currently the org component of the request is not required.
Blocked by#11961