Skip to content

Commit 819bfd3

Browse files
authored
fix: remove assigning org-member role, this is implied from membership (#13578)
1 parent 66a604d commit 819bfd3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

coderd/organizations.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"github.com/coder/coder/v2/coderd/database/dbtime"
1414
"github.com/coder/coder/v2/coderd/httpapi"
1515
"github.com/coder/coder/v2/coderd/httpmw"
16-
"github.com/coder/coder/v2/coderd/rbac"
1716
"github.com/coder/coder/v2/codersdk"
1817
)
1918

@@ -95,12 +94,11 @@ func (api *API) postOrganizations(rw http.ResponseWriter, r *http.Request) {
9594
UserID: apiKey.UserID,
9695
CreatedAt: dbtime.Now(),
9796
UpdatedAt: dbtime.Now(),
98-
Roles: []string{
97+
Roles: []string{
9998
// TODO: When organizations are allowed to be created, we should
10099
// come back to determining the default role of the person who
101100
// creates the org. Until that happens, all users in an organization
102101
// should be just regular members.
103-
rbac.RoleOrgMember(),
104102
},
105103
})
106104
if err != nil {

0 commit comments

Comments
 (0)