From 515d5a80eb9ace41e1aa94c6f880738efc56e3b9 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 9 Feb 2018 00:24:17 +0300 Subject: www: 404 for non existent blog --- juick-www/src/main/java/com/juick/www/controllers/Messages.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-www/src/main') diff --git a/juick-www/src/main/java/com/juick/www/controllers/Messages.java b/juick-www/src/main/java/com/juick/www/controllers/Messages.java index 5a76256e..d862e979 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/Messages.java +++ b/juick-www/src/main/java/com/juick/www/controllers/Messages.java @@ -224,7 +224,7 @@ public class Messages { ModelMap model) throws IOException { com.juick.User user = userService.getUserByName(uname); com.juick.User visitor = UserUtils.getCurrentUser(); - if (user.isBanned()) { + if (user.isBanned() || user.isAnonymous()) { throw new HttpNotFoundException(); } -- cgit v1.2.3