From b02d6b11957b32afe2ef569c095add695a7ecf28 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 1 Mar 2019 15:56:43 +0300 Subject: Fix anonymous user check --- src/main/java/com/juick/User.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/juick') diff --git a/src/main/java/com/juick/User.java b/src/main/java/com/juick/User.java index 84986010..f34f07a8 100644 --- a/src/main/java/com/juick/User.java +++ b/src/main/java/com/juick/User.java @@ -174,7 +174,7 @@ public class User { @XmlTransient @JsonIgnore public boolean isAnonymous() { - return false; + return uid == 0; } @Nonnull -- cgit v1.2.3