Skip to content

Commit 7ff0bb0

Browse files
committed
linting
1 parent 8857660 commit 7ff0bb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/members.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func (api *API) putMemberRoles(rw http.ResponseWriter, r *http.Request) {
217217
defer commitAudit()
218218

219219
// Check if changing roles is allowed
220-
if !api.allowChangingMemberRoles(rw, ctx, member, organization) {
220+
if !api.allowChangingMemberRoles(ctx, rw, member, organization) {
221221
return
222222
}
223223

@@ -265,7 +265,7 @@ func (api *API) putMemberRoles(rw http.ResponseWriter, r *http.Request) {
265265
httpapi.Write(ctx, rw, http.StatusOK, resp[0])
266266
}
267267

268-
func (api *API) allowChangingMemberRoles(rw http.ResponseWriter, ctx context.Context, member httpmw.OrganizationMember, organization database.Organization) bool {
268+
func (api *API) allowChangingMemberRoles(ctx context.Context, rw http.ResponseWriter, member httpmw.OrganizationMember, organization database.Organization) bool {
269269
// nolint:gocritic // The caller could be an org admin without this perm.
270270
// We need to disable manual role assignment if role sync is enabled for
271271
// the given organization.

0 commit comments

Comments
 (0)