Refactor group, ns group, policy and posture checks

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
bcmmbaga
2024-10-21 17:12:19 +03:00
parent 8b61ffa78f
commit 070e1dd890
4 changed files with 30 additions and 3 deletions

View File

@@ -489,6 +489,9 @@ func anyGroupHasPeers(account *Account, groupIDs []string) bool {
func areGroupChangesAffectPeers(account *Account, groupIDs []string) bool {
for _, groupID := range groupIDs {
if slices.Contains(account.DNSSettings.DisabledManagementGroups, groupID) {
return true
}
if linked, _ := isGroupLinkedToDns(account.NameServerGroups, groupID); linked {
return true
}