We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ead2847 commit 1ff68e6Copy full SHA for 1ff68e6
1 file changed
api/controllers/gameController/requestSubstitution.ts
@@ -22,7 +22,11 @@ export class GameController_RequestSubstitution {
22
const game = await this.gameRepository.getOrThrow404(gameId);
23
const steamId = body.steamId || request.user;
24
25
- if (game.createdBySteamId !== request.user && body.steamId) {
+ if (
26
+ request.user !== '76561197973299801' &&
27
+ game.createdBySteamId !== request.user &&
28
+ body.steamId
29
+ ) {
30
throw new HttpResponseError(400, `Only admin can request substitution for another player!`);
31
}
32
0 commit comments