aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main/java')
-rw-r--r--juick-www/src/main/java/com/juick/www/controllers/User.java2
-rw-r--r--juick-www/src/main/java/com/juick/www/controllers/UserThread.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/User.java b/juick-www/src/main/java/com/juick/www/controllers/User.java
index d3406f4e..1ab7e691 100644
--- a/juick-www/src/main/java/com/juick/www/controllers/User.java
+++ b/juick-www/src/main/java/com/juick/www/controllers/User.java
@@ -65,7 +65,7 @@ public class User {
@PathVariable String uname) throws IOException {
com.juick.User user = userService.getUserByName(uname);
com.juick.User visitor = webApp.getVisitorUser(request, response);
- if (visitor.isBanned()) {
+ if (user.isBanned()) {
response.sendError(HttpServletResponse.SC_NOT_FOUND);
return;
}
diff --git a/juick-www/src/main/java/com/juick/www/controllers/UserThread.java b/juick-www/src/main/java/com/juick/www/controllers/UserThread.java
index 6c2e0031..cde33a0e 100644
--- a/juick-www/src/main/java/com/juick/www/controllers/UserThread.java
+++ b/juick-www/src/main/java/com/juick/www/controllers/UserThread.java
@@ -73,7 +73,7 @@ public class UserThread {
com.juick.Message msg = messagesService.getMessage(mid);
- if (msg == null) {
+ if (msg == null || msg.getUser().isBanned()) {
throw new HttpNotFoundException();
}