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

This commit is contained in:
刘祥超
2021-01-05 14:11:00 +08:00
parent 079f9de92f
commit 7e5f2239f9
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)