fix downloading other players' games without oauth
This commit is contained in:
parent
4f6d6e4360
commit
104252ed86
|
@ -53,9 +53,9 @@ object Game extends LilaController {
|
||||||
evals = getBoolOpt("evals", req) | false
|
evals = getBoolOpt("evals", req) | false
|
||||||
),
|
),
|
||||||
perSecond = MaxPerSecond(me match {
|
perSecond = MaxPerSecond(me match {
|
||||||
case None => 10
|
|
||||||
case Some(m) if m is user.id => 50
|
case Some(m) if m is user.id => 50
|
||||||
case Some(_) if oauth => 20 // bonus for oauth logged in only (not to XSRF)
|
case Some(_) if oauth => 20 // bonus for oauth logged in only (not for XSRF)
|
||||||
|
case _ => 10
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
val date = (DateTimeFormat forPattern "yyyy-MM-dd") print new DateTime
|
val date = (DateTimeFormat forPattern "yyyy-MM-dd") print new DateTime
|
||||||
|
|
Loading…
Reference in a new issue