diff options
author | Vitaly Takmazov | 2016-07-10 22:56:58 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-07-10 22:56:58 +0300 |
commit | 156ab97673d7552c11784d0cdd53f8f37923a294 (patch) | |
tree | 2ae4a8928c869cc428eb5a48cf1bda6606e9f2ea /juick-www/src/main/java/com/juick/www/Main.java | |
parent | a0fa66fd9587407030d1c1ed3c5ee57d15c280fb (diff) |
fix getUserByHash usage, part 2
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/Main.java')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/Main.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/Main.java b/juick-www/src/main/java/com/juick/www/Main.java index 4d340cd8..e69d3c02 100644 --- a/juick-www/src/main/java/com/juick/www/Main.java +++ b/juick-www/src/main/java/com/juick/www/Main.java @@ -136,7 +136,7 @@ public class Main extends HttpServlet implements Stream.StreamListener { } } else if (uri.equals("/post")) { com.juick.User visitor = Utils.getVisitorUser(sql, request, response); - if (visitor != null) { + if (visitor.getUID() > 0) { pagesNewMessage.doGetNewMessage(sql, request, response, visitor); } else { Utils.sendTemporaryRedirect(response, "/login"); |