Skip to content

Commit

Permalink
allow creating up to 8 private tournaments a day - closes lichess-org…
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Feb 4, 2019
1 parent 61f503a commit 350c5bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/Tournament.scala
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ object Tournament extends LilaController {
setup => {
val cost = if (me.hasTitle ||
Env.streamer.liveStreamApi.isStreaming(me.id) ||
isGranted(_.ManageTournament)) 1 else 4
isGranted(_.ManageTournament) ||
setup.password.isDefined) 1 else 4
CreateLimitPerUser(me.id, cost = cost) {
CreateLimitPerIP(HTTPRequest lastRemoteAddress ctx.req, cost = cost) {
env.api.createTournament(setup, me, teams, getUserTeamIds) flatMap { tour =>
Expand Down

0 comments on commit 350c5bc

Please sign in to comment.