WAF列表中去除跟服务分组相关的策略

This commit is contained in:
GoEdgeLab
2021-10-10 20:18:07 +08:00
parent cc7fc9cb3e
commit ac86b1ff1b
2 changed files with 3 additions and 1 deletions

View File

@@ -272,6 +272,7 @@ func (this *HTTPFirewallPolicyDAO) CountAllEnabledFirewallPolicies(tx *dbs.Tx, k
State(HTTPFirewallPolicyStateEnabled).
Attr("userId", 0).
Attr("serverId", 0).
Attr("groupId", 0).
Count()
}
@@ -286,6 +287,7 @@ func (this *HTTPFirewallPolicyDAO) ListEnabledFirewallPolicies(tx *dbs.Tx, keywo
State(HTTPFirewallPolicyStateEnabled).
Attr("userId", 0).
Attr("serverId", 0).
Attr("groupId", 0).
Offset(offset).
Limit(size).
DescPk().

File diff suppressed because one or more lines are too long