Skip to content
Merged
Prev Previous commit
fixup! rename user auth role middleware
  • Loading branch information
Emyrk committed Jun 1, 2022
commit ccecddad95cf7682c6089637ea53fff4a733ea80
2 changes: 1 addition & 1 deletion coderd/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ func (api *API) userRoles(rw http.ResponseWriter, r *http.Request) {
func (api *API) putUserRoles(rw http.ResponseWriter, r *http.Request) {
// User is the user to modify.
user := httpmw.UserParam(r)
roles := httpmw.UserAuthorizationRoles(r)
roles := httpmw.AuthorizationUserRoles(r)
apiKey := httpmw.APIKey(r)

if apiKey.UserID == user.ID {
Expand Down