Commit 37a5db53 authored by Skia's avatar Skia 🤘
Browse files

Re-fix AnonymousUser

Signed-off-by: Skia's avatarSkia <>
parent b06f270e
Pipeline #1058 failed with stage
in 4 minutes and 43 seconds
......@@ -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
def is_banned_conuter(self):
def is_banned_counter(self):
return False
def forum_infos(self):
raise PermissionDenied
def is_in_group(self, group_name):
The anonymous user is only the public group
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment