Skip to content

Commit

Permalink
codecov:1.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun committed Jan 8, 2024
1 parent 7077588 commit 06d9733
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions service/interceptor/auth/client_v1_authability.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 06d9733

Please sign in to comment.