diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-07-16 13:15:07 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-07-16 14:18:36 +0200 |
commit | f8aaf2a6f573b15777601c38513d9a7c869f1462 (patch) | |
tree | 93f7a147f2965d277475868bc04a4fb551966f2c /public | |
parent | 11944e43b67c079ccb1ec398e468b2d774b9ec40 (diff) | |
download | server-f8aaf2a6f573b15777601c38513d9a7c869f1462.tar.gz |
Rewrite is_your_turn SQL statements.
Now they should work in all lobby views.
Diffstat (limited to 'public')
-rw-r--r-- | public/join.js | 4 |
1 files changed, 1 insertions, 3 deletions
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() { |