diff --git a/pkg/kapis/terminal/v1alpha2/handler.go b/pkg/kapis/terminal/v1alpha2/handler.go index 5a3e114b6..193638592 100644 --- a/pkg/kapis/terminal/v1alpha2/handler.go +++ b/pkg/kapis/terminal/v1alpha2/handler.go @@ -104,7 +104,7 @@ func (t *terminalHandler) handleShellAccessToNode(request *restful.Request, resp ResourceScope: requestctx.ClusterScope, } - decision, reason, err := t.authorizer.Authorize(createPodsExec) + decision, reason, err := t.authorizer.Authorize(createNodesExec) if err != nil { api.HandleInternalError(response, request, err) return