Skip to content

Commit 9e0cd24

Browse files
committed
Prevent putting mapset on hold if it's blacklisted
1 parent 2fb368f commit 9e0cd24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

handlers/ranking_actions.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,10 @@ func OnHoldRankingQueueMapset(c *gin.Context) *APIError {
307307
return APIErrorForbidden("This mapset is already on hold.")
308308
}
309309

310+
if queueMapset.Status == db.RankingQueueBlacklisted {
311+
return APIErrorForbidden("This mapset is blacklisted.")
312+
}
313+
310314
onHoldAction := &db.MapsetRankingQueueComment{
311315
UserId: data.User.Id,
312316
MapsetId: data.MapsetId,

0 commit comments

Comments
 (0)