update check permission

Signed-off-by: lynxcat <lynxcatdeng@gmail.com>
This commit is contained in:
lynxcat
2022-01-10 15:36:00 +08:00
parent 5e5c9a8d04
commit 1b382e81cb

View File

@@ -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