From 7b0c87c980be1dc079c161ff56bc17e3d6437cd3 Mon Sep 17 00:00:00 2001 From: Niklas Fiekas Date: Sat, 4 May 2019 23:42:39 +0200 Subject: [PATCH] fix public tournament chat not available --- app/controllers/Tournament.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/Tournament.scala b/app/controllers/Tournament.scala index 3153a991f2..6855a14735 100644 --- a/app/controllers/Tournament.scala +++ b/app/controllers/Tournament.scala @@ -77,7 +77,7 @@ object Tournament extends LilaController { private[controllers] def canHaveChat(tour: Tour, json: Option[JsObject])(implicit ctx: Context): Boolean = !ctx.kid && // no public chats for kids ctx.me.fold(!tour.isPrivate) { u => // anon can see public chats, except for private tournaments - (tour.isPrivate && json.fold(true)(jsonHasMe)) && // private tournament that I joined + (!tour.isPrivate || json.fold(true)(jsonHasMe)) && // private tournament that I joined Env.chat.panic.allowed(u, tighter = tour.variant == chess.variant.Antichess) }