diff --git a/service/interceptor/auth/client_v1_authability.go b/service/interceptor/auth/client_v1_authability.go index 248fd7e56..b967993db 100644 --- a/service/interceptor/auth/client_v1_authability.go +++ b/service/interceptor/auth/client_v1_authability.go @@ -218,12 +218,12 @@ func (svr *ServerAuthAbility) UpdateInstance(ctx context.Context, req *apiservic } // GetServiceContractWithCache User Client Get ServiceContract Rule Information -func (svr *ServerAuthAbility) GetServiceContractWithCache(ctx context.Context, req *apiservice.ServiceContract) *apiservice.DiscoverResponse { - authCtx := svr.collectServiceAuthContext( - ctx, []*apiservice.Service{&apiservice.Service{ - Namespace: wrapperspb.String(req.Namespace), - Name: wrapperspb.String(req.Service), - }}, model.Read, "GetServiceContractWithCache") +func (svr *ServerAuthAbility) GetServiceContractWithCache(ctx context.Context, + req *apiservice.ServiceContract) *apiservice.DiscoverResponse { + authCtx := svr.collectServiceAuthContext(ctx, []*apiservice.Service{{ + Namespace: wrapperspb.String(req.Namespace), + Name: wrapperspb.String(req.Service), + }}, model.Read, "GetServiceContractWithCache") _, err := svr.strategyMgn.GetAuthChecker().CheckClientPermission(authCtx) if err != nil {