Browse Source

filter out user policies on CE

abhishek9686 3 months ago
parent
commit
a1ad90ce34
1 changed files with 3 additions and 0 deletions
  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)
 		}