remove superfluous protection

This commit is contained in:
Thibault Duplessis 2014-07-30 11:08:18 +02:00
parent 4b8e19375d
commit f55accc462

View file

@ -30,7 +30,7 @@ object Round extends LilaController with TheftPrevention {
def websocketPlayer(fullId: String, apiVersion: Int) = Socket[JsValue] { implicit ctx =>
GameRepo pov fullId flatMap {
_.filterNot(isTheft) ?? { pov =>
_ ?? { pov =>
(get("sri") |@| getInt("version")).tupled ?? {
case (uid, version) => env.socketHandler.player(pov, version, uid, ~get("ran"), ctx.me, ctx.ip)
}