fix authorized user groups for ssh + fix ignoring disabled policies + fix ignore invalid router

This commit is contained in:
pascal
2026-08-12 17:43:43 +02:00
parent 9bb1db28c3
commit 931598e593
5 changed files with 54 additions and 26 deletions
@@ -819,7 +819,7 @@ func (c *NetworkMapComponents) processResourcePolicies(
var routes []*nmdata.Route
for _, policy := range c.ResourcePoliciesMap[resource.ID] {
if policy == nil || len(policy.Rules) == 0 || policy.Rules[0] == nil {
if policy == nil || !policy.Enabled || len(policy.Rules) == 0 || policy.Rules[0] == nil {
continue
}
peers := c.getResourcePolicyPeers(policy)