Skip to content

Commit a0e5aef

Browse files
committed
Lint
1 parent 52835d5 commit a0e5aef

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

enterprise/coderd/roles.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ package coderd
33
import (
44
"net/http"
55

6+
"github.com/google/uuid"
7+
68
"github.com/coder/coder/v2/coderd/database"
79
"github.com/coder/coder/v2/coderd/database/db2sdk"
810
"github.com/coder/coder/v2/coderd/httpapi"
@@ -59,6 +61,7 @@ func (api *API) patchRole(rw http.ResponseWriter, r *http.Request) {
5961
inserted, err := api.Database.UpsertCustomRole(ctx, database.UpsertCustomRoleParams{
6062
Name: args.Name,
6163
DisplayName: args.DisplayName,
64+
OrganizationID: uuid.NullUUID{},
6265
SitePermissions: args.SitePermissions,
6366
OrgPermissions: args.OrgPermissions,
6467
UserPermissions: args.UserPermissions,

enterprise/coderd/roles_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,6 @@ func TestCustomRole(t *testing.T) {
198198
OrganizationPermissions: nil,
199199
UserPermissions: nil,
200200
})
201-
require.ErrorContains(t, err, "Invalid role name")
201+
require.ErrorContains(t, err, "Validation")
202202
})
203203
}

0 commit comments

Comments
 (0)