diff --git a/src/main/java/net/socialgamer/cah/handlers/SpectateGameHandler.java b/src/main/java/net/socialgamer/cah/handlers/SpectateGameHandler.java index 5d4f77e..fdd73d2 100644 --- a/src/main/java/net/socialgamer/cah/handlers/SpectateGameHandler.java +++ b/src/main/java/net/socialgamer/cah/handlers/SpectateGameHandler.java @@ -62,7 +62,7 @@ public class SpectateGameHandler 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); }