From f7d3fbaeca253be88c0782aead4b8ee76f6c608c Mon Sep 17 00:00:00 2001 From: Zhiyu Wang Date: Mon, 1 Aug 2022 16:02:18 +0800 Subject: [PATCH] Fix: missing return when token is null (#4512) Signed-off-by: Zhiyu Wang --- pkg/apiserver/interfaces/api/authentication.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/apiserver/interfaces/api/authentication.go b/pkg/apiserver/interfaces/api/authentication.go index 753e9da0f..6e563a116 100644 --- a/pkg/apiserver/interfaces/api/authentication.go +++ b/pkg/apiserver/interfaces/api/authentication.go @@ -104,6 +104,7 @@ func authCheckFilter(req *restful.Request, res *restful.Response, chain *restful } if tokenValue == "" { bcode.ReturnError(req, res, bcode.ErrNotAuthorized) + return } }