dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit d4b00146f6a117a368697ac6b0ac890d07449e89
parent b0f0a2ccfffd2d8d76d8abaa863f5169a4ebd339
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Mon, 12 Jun 2023 09:10:34 -0700

never deploy chess debug in prod again

Diffstat:
Mpkg/web/handlers/handlers.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -4981,14 +4981,14 @@ func ChessGameFormHandler(c echo.Context) error { } func ChessGameHandler(c echo.Context) error { - debugChess := false + debugChess := true authUser := c.Get("authUser").(*database.User) key := c.Param("key") g := interceptors.ChessInstance.GetGame(key) if g == nil { - if debugChess { + if debugChess && config.Development.IsTrue() { // Chess debug db := c.Get("database").(*database.DkfDB) user1, _ := db.GetUserByID(1)