diff options
author | Vitaly Takmazov | 2018-02-09 00:24:17 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-02-09 00:24:42 +0300 |
commit | 515d5a80eb9ace41e1aa94c6f880738efc56e3b9 (patch) | |
tree | 55eb4929d42aef12fcee8c4214ccb57ce98c1245 /juick-www/src/main/java/com/juick/www | |
parent | 7414f1034d32c249294a081f1e176a9266fc92ac (diff) |
www: 404 for non existent blog
Diffstat (limited to 'juick-www/src/main/java/com/juick/www')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/controllers/Messages.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |