From 37a5db537b613d54512d327f99b492eb9c927257 Mon Sep 17 00:00:00 2001 From: Skia Date: Mon, 12 Jun 2017 13:58:35 +0200 Subject: [PATCH] Re-fix AnonymousUser Signed-off-by: Skia --- core/models.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/models.py b/core/models.py index dcf1202e..0e747a4f 100644 --- a/core/models.py +++ b/core/models.py @@ -28,7 +28,7 @@ from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, UserM from django.utils.translation import ugettext_lazy as _ from django.utils import timezone from django.core import validators -from django.core.exceptions import ValidationError +from django.core.exceptions import ValidationError, PermissionDenied from django.core.urlresolvers import reverse from django.conf import settings from django.db import transaction @@ -518,9 +518,13 @@ class AnonymousUser(AuthAnonymousUser): return False @property - def is_banned_conuter(self): + def is_banned_counter(self): return False + @property + def forum_infos(self): + raise PermissionDenied + def is_in_group(self, group_name): """ The anonymous user is only the public group