部分API对user角色开放

This commit is contained in:
GoEdgeLab
2021-01-18 21:28:51 +08:00
parent df9be40220
commit 8ea17ef75f
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的所有策略