Skip to content

Commit 1ff68e6

Browse files
committed
allow me to request substitutions
1 parent ead2847 commit 1ff68e6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

api/controllers/gameController/requestSubstitution.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ export class GameController_RequestSubstitution {
2222
const game = await this.gameRepository.getOrThrow404(gameId);
2323
const steamId = body.steamId || request.user;
2424

25-
if (game.createdBySteamId !== request.user && body.steamId) {
25+
if (
26+
request.user !== '76561197973299801' &&
27+
game.createdBySteamId !== request.user &&
28+
body.steamId
29+
) {
2630
throw new HttpResponseError(400, `Only admin can request substitution for another player!`);
2731
}
2832

0 commit comments

Comments
 (0)