summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-16 13:15:07 +0200
committerTor Andersson <tor@ccxvii.net>2021-07-16 14:18:36 +0200
commitf8aaf2a6f573b15777601c38513d9a7c869f1462 (patch)
tree93f7a147f2965d277475868bc04a4fb551966f2c /public
parent11944e43b67c079ccb1ec398e468b2d774b9ec40 (diff)
downloadserver-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.js4
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() {