部分API对user角色开放

This commit is contained in:
刘祥超
2021-01-18 21:28:51 +08:00
parent 5983ce8b53
commit 66ac2655d0
6 changed files with 133 additions and 18 deletions

View File

@@ -287,10 +287,13 @@ func (this *HTTPFirewallPolicyDAO) CheckUserFirewallPolicy(tx *dbs.Tx, userId in
if err != nil {
return err
}
if !ok {
return ErrNotFound
if ok {
return nil
}
return nil
// TODO 检查是否为用户Server所使用
return ErrNotFound
}
// 查找包含某个IPList的所有策略