-
Notifications
You must be signed in to change notification settings - Fork 955
Closed
Labels
apiArea: HTTP APIArea: HTTP API
Milestone
Description
Lines 352 to 370 in 993c1a6
} else { | |
// If no organization is provided, add the user to the first | |
// organization. | |
organizations, err := api.Database.GetOrganizations(ctx) | |
if err != nil { | |
httpapi.Write(ctx, rw, http.StatusInternalServerError, codersdk.Response{ | |
Message: "Internal error fetching orgs.", | |
Detail: err.Error(), | |
}) | |
return | |
} | |
if len(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
Metadata
Metadata
Assignees
Labels
apiArea: HTTP APIArea: HTTP API