Fix AnonymousUser

Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
Skia 2017-06-06 19:37:45 +02:00
parent cef2230640
commit e7f7c57558

View File

@ -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
@ -495,31 +495,35 @@ class AnonymousUser(AuthAnonymousUser):
@property
def was_subscribed(self):
return False
raise PermissionDenied
@property
def subscribed(self):
return False
raise PermissionDenied
@property
def is_root(self):
return False
raise PermissionDenied
@property
def is_board_member(self):
return False
raise PermissionDenied
@property
def is_launderette_manager(self):
return False
raise PermissionDenied
@property
def is_banned_alcohol(self):
return False
raise PermissionDenied
@property
def is_banned_conuter(self):
return False
def is_banned_counter(self):
raise PermissionDenied
@property
def forum_infos(self):
raise PermissionDenied
def is_in_group(self, group_name):
"""