Răsfoiți Sursa

filter out user policies on CE

abhishek9686 3 luni în urmă
părinte
comite
a1ad90ce34
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      logic/acls.go

+ 3 - 0
logic/acls.go

@@ -669,6 +669,9 @@ func ListAclsByNetwork(netID models.NetworkID) ([]models.Acl, error) {
 	allAcls := ListAcls()
 	netAcls := []models.Acl{}
 	for _, acl := range allAcls {
+		if !servercfg.IsPro && acl.RuleType == models.UserPolicy {
+			continue
+		}
 		if acl.NetworkID == netID {
 			netAcls = append(netAcls, acl)
 		}