From 819bfd317039e0e218477f5a72c556fad731e4bc Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Fri, 21 Jun 2024 03:01:39 -1000 Subject: [PATCH] fix: remove assigning org-member role, this is implied from membership (#13578) --- coderd/organizations.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/coderd/organizations.go b/coderd/organizations.go index 6c0b14697a..6d40b76514 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 {