diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-01-05 12:31:28 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-01-05 12:31:38 +0100 |
commit | b4dbddb3e666b6d60e39500e6b31c375b1dd755d (patch) | |
tree | 32dad64ad15ff7168762a15f170dc6063111fcf1 | |
parent | 8dcb2dc58a407feea03373334bf2810f029d160a (diff) | |
download | server-b4dbddb3e666b6d60e39500e6b31c375b1dd755d.tar.gz |
-rw-r--r-- | server.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2086,7 +2086,7 @@ function assign_random_roles(game, options, players) { app.post("/api/start/:game_id", must_be_logged_in, function (req, res) { let game_id = req.params.game_id | 0 let game = SQL_SELECT_GAME.get(game_id) - if (game.owner_id !== req.user.user_id) + if (req.user.user_id !== game.owner_id && req.user.user_id !== 1) return res.send("Not authorized to start that game ID.") if (game.status !== STATUS_OPEN) return res.send("The game is already started.") |