pprof: fix required authentication action (#3850)
This commit is contained in:
parent
d13dc1074a
commit
457a47116a
|
@ -100,7 +100,7 @@ func (pp *PPROF) middlewareOrigin(ctx *gin.Context) {
|
|||
func (pp *PPROF) middlewareAuth(ctx *gin.Context) {
|
||||
err := pp.AuthManager.Authenticate(&auth.Request{
|
||||
IP: net.ParseIP(ctx.ClientIP()),
|
||||
Action: conf.AuthActionMetrics,
|
||||
Action: conf.AuthActionPprof,
|
||||
HTTPRequest: ctx.Request,
|
||||
})
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue