Skip to content

Commit

Permalink
raise permission to admin
Browse files Browse the repository at this point in the history
  • Loading branch information
iljarotar committed Nov 7, 2024
1 parent b4de838 commit a22c714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/metal-api/internal/service/switch-service.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (r *switchResource) webService() *restful.WebService {
DefaultReturns("Error", httperrors.HTTPErrorResponse{}))

ws.Route(ws.POST("/migrate").
To(editor(r.migrate)).
To(admin(r.migrate)).
Doc("migrates machine connections from one switch to another").
Operation("migrateSwitch").
Metadata(restfulspec.KeyOpenAPITags, tags).
Expand Down

0 comments on commit a22c714

Please sign in to comment.