From f8aaf2a6f573b15777601c38513d9a7c869f1462 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 16 Jul 2021 13:15:07 +0200 Subject: Rewrite is_your_turn SQL statements. Now they should work in all lobby views. --- public/join.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'public/join.js') diff --git a/public/join.js b/public/join.js index 4c2b0a8..a5a2e3a 100644 --- a/public/join.js +++ b/public/join.js @@ -77,9 +77,7 @@ function start_event_source() { } function is_your_turn(player, role) { - if (player.user_id === user_id) - return (game.active_role === role || game.active_role === "Both" || game.active_role === "All"); - return false; + return (game.active_role === role || game.active_role === "Both" || game.active_role === "All"); } function update() { -- cgit v1.2.3