Allow admins to join any game

This commit is contained in:
Tyler Dence 2018-08-01 02:24:33 +00:00
parent 5d05f2e85b
commit 332da9b77e
No known key found for this signature in database
GPG Key ID: 3B08EFC6BA974CFC
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public class JoinGameHandler extends GameHandler {
final String password = request.getParameter(AjaxRequest.PASSWORD);
final String gamePassword = game.getPassword();
if (gamePassword != null && !gamePassword.equals("")) {
if (gamePassword != null && !gamePassword.equals("") && !user.isAdmin()) {
if (password == null || !gamePassword.equals(password)) {
return error(ErrorCode.WRONG_PASSWORD);
}