管理员查询WAF策略时隐藏用户创建的

This commit is contained in:
GoEdgeLab
2021-01-05 14:11:00 +08:00
parent b3cfb7803b
commit 87828af844
4 changed files with 5 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ func IsNotNull(data string) bool {
func NewQuery(tx *dbs.Tx, dao dbs.DAOWrapper, adminId int64, userId int64) *dbs.Query {
query := dao.Object().Query(tx)
if adminId > 0 {
query.Attr("adminId", adminId)
//query.Attr("adminId", adminId)
}
if userId > 0 {
query.Attr("userId", userId)