forgot allowed check

This commit is contained in:
Howl 2016-05-29 13:09:36 +02:00
parent 0c6237ed01
commit ba5a078db3

View File

@ -40,7 +40,7 @@ func getUserX(c *gin.Context, db *sql.DB, orderBy string, limit int) {
FROM scores FROM scores
LEFT JOIN beatmaps ON beatmaps.beatmap_md5 = scores.beatmap_md5 LEFT JOIN beatmaps ON beatmaps.beatmap_md5 = scores.beatmap_md5
LEFT JOIN users ON scores.userid = users.id 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 %s
LIMIT %d`, whereClause, orderBy, limit, LIMIT %d`, whereClause, orderBy, limit,
) )