mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-07 16:16:37 +08:00
移除 risk
This commit is contained in:
@@ -92,12 +92,6 @@ func LoginRequired() gin.HandlerFunc {
|
||||
// set user info
|
||||
util.SetToContext(c, UserObjKey, &user)
|
||||
|
||||
if risk, ok := checkOpenAPIUserRisk(ctx, user.ID); ok {
|
||||
if blocked := applyOpenAPIUserRisk(c, risk); blocked {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// next
|
||||
c.Next()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user