Remove fallthrough

This commit is contained in:
freddygv 2020-04-27 12:00:14 -06:00
parent ac809ec635
commit 0ad47bdda5
1 changed files with 1 additions and 5 deletions

View File

@ -262,11 +262,7 @@ func (s *Server) process(stream ADSStream, reqCh <-chan *envoy.DiscoveryRequest)
if rule != nil && rule.ServiceWrite(cfgSnap.Proxy.DestinationServiceName, &authzContext) != acl.Allow {
return status.Errorf(codes.PermissionDenied, "permission denied")
}
case structs.ServiceKindMeshGateway:
fallthrough
case structs.ServiceKindTerminatingGateway:
fallthrough
case structs.ServiceKindIngressGateway:
case structs.ServiceKindMeshGateway, structs.ServiceKindTerminatingGateway, structs.ServiceKindIngressGateway:
cfgSnap.ProxyID.EnterpriseMeta.FillAuthzContext(&authzContext)
if rule != nil && rule.ServiceWrite(cfgSnap.Service, &authzContext) != acl.Allow {
return status.Errorf(codes.PermissionDenied, "permission denied")