Kaynağa Gözat

filter out user policies on CE

abhishek9686 3 ay önce
ebeveyn
işleme
a1ad90ce34
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  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)
 		}