From b06f270ea5b3b303fb4c1dc80b63249ccceb251d Mon Sep 17 00:00:00 2001 From: Skia Date: Mon, 12 Jun 2017 13:57:08 +0200 Subject: [PATCH] Revert "Fix AnonymousUser" This reverts commit e7f7c5755883dc7b10831835854a44e248b29500. --- core/models.py | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/core/models.py b/core/models.py index e6c23a43..dcf1202e 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, PermissionDenied +from django.core.exceptions import ValidationError from django.core.urlresolvers import reverse from django.conf import settings from django.db import transaction @@ -495,35 +495,31 @@ class AnonymousUser(AuthAnonymousUser): @property def was_subscribed(self): - raise PermissionDenied + return False @property def subscribed(self): - raise PermissionDenied + return False @property def is_root(self): - raise PermissionDenied + return False @property def is_board_member(self): - raise PermissionDenied + return False @property def is_launderette_manager(self): - raise PermissionDenied + return False @property def is_banned_alcohol(self): - raise PermissionDenied + return False @property - def is_banned_counter(self): - raise PermissionDenied - - @property - def forum_infos(self): - raise PermissionDenied + def is_banned_conuter(self): + return False def is_in_group(self, group_name): """