From 3e0b964e9bcadd6f442f0f5209ad7827c4ccb4e6 Mon Sep 17 00:00:00 2001 From: Skia Date: Fri, 26 Aug 2016 21:09:32 +0200 Subject: [PATCH] Small AnonymousUser fix (le gaulois) --- core/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/models.py b/core/models.py index 6474faba..c3685eea 100644 --- a/core/models.py +++ b/core/models.py @@ -389,6 +389,10 @@ class AnonymousUser(AuthAnonymousUser): def subscribed(self): return False + @property + def is_root(self): + return False + def is_in_group(self, group_name): """ The anonymous user is only the public group