From ba5a078db37929f2e0a81eff724de27805797884 Mon Sep 17 00:00:00 2001 From: Howl Date: Sun, 29 May 2016 13:09:36 +0200 Subject: [PATCH] forgot allowed check --- app/peppy/user_x.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/peppy/user_x.go b/app/peppy/user_x.go index 755ab64..b7dac1e 100644 --- a/app/peppy/user_x.go +++ b/app/peppy/user_x.go @@ -40,7 +40,7 @@ func getUserX(c *gin.Context, db *sql.DB, orderBy string, limit int) { FROM scores LEFT JOIN beatmaps ON beatmaps.beatmap_md5 = scores.beatmap_md5 LEFT JOIN users ON scores.userid = users.id - WHERE %s AND scores.play_mode = ? + WHERE %s AND scores.play_mode = ? AND users.allowed = '1' %s LIMIT %d`, whereClause, orderBy, limit, )