From 635b041a209a88993599228610c24e2cf1cb9217 Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Fri, 14 Jun 2024 12:01:59 -0500 Subject: [PATCH] fix: remove assigning org-member role, this is implied from membership --- coderd/organizations.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/coderd/organizations.go b/coderd/organizations.go index 6c0b14697a642..6d40b765141ba 100644 --- a/coderd/organizations.go +++ b/coderd/organizations.go @@ -13,7 +13,6 @@ import ( "github.com/coder/coder/v2/coderd/database/dbtime" "github.com/coder/coder/v2/coderd/httpapi" "github.com/coder/coder/v2/coderd/httpmw" - "github.com/coder/coder/v2/coderd/rbac" "github.com/coder/coder/v2/codersdk" ) @@ -95,12 +94,11 @@ func (api *API) postOrganizations(rw http.ResponseWriter, r *http.Request) { UserID: apiKey.UserID, CreatedAt: dbtime.Now(), UpdatedAt: dbtime.Now(), - Roles: []string{ + Roles: []string{ // TODO: When organizations are allowed to be created, we should // come back to determining the default role of the person who // creates the org. Until that happens, all users in an organization // should be just regular members. - rbac.RoleOrgMember(), }, }) if err != nil {