From 332da9b77e364600a7654649bb5928cb4c75aafd Mon Sep 17 00:00:00 2001 From: Tyler Dence Date: Wed, 1 Aug 2018 02:24:33 +0000 Subject: [PATCH] Allow admins to join any game --- src/main/java/net/socialgamer/cah/handlers/JoinGameHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/socialgamer/cah/handlers/JoinGameHandler.java b/src/main/java/net/socialgamer/cah/handlers/JoinGameHandler.java index 5bd836e..873259f 100644 --- a/src/main/java/net/socialgamer/cah/handlers/JoinGameHandler.java +++ b/src/main/java/net/socialgamer/cah/handlers/JoinGameHandler.java @@ -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); }