mirror of
https://github.com/ae-utbm/sith.git
synced 2025-08-01 14:49:56 +00:00
@@ -28,7 +28,7 @@ from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, UserM
|
|||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
from django.core import validators
|
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.core.urlresolvers import reverse
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.db import transaction
|
from django.db import transaction
|
||||||
@@ -495,31 +495,35 @@ class AnonymousUser(AuthAnonymousUser):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def was_subscribed(self):
|
def was_subscribed(self):
|
||||||
return False
|
raise PermissionDenied
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def subscribed(self):
|
def subscribed(self):
|
||||||
return False
|
raise PermissionDenied
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_root(self):
|
def is_root(self):
|
||||||
return False
|
raise PermissionDenied
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_board_member(self):
|
def is_board_member(self):
|
||||||
return False
|
raise PermissionDenied
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_launderette_manager(self):
|
def is_launderette_manager(self):
|
||||||
return False
|
raise PermissionDenied
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_banned_alcohol(self):
|
def is_banned_alcohol(self):
|
||||||
return False
|
raise PermissionDenied
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_banned_conuter(self):
|
def is_banned_counter(self):
|
||||||
return False
|
raise PermissionDenied
|
||||||
|
|
||||||
|
@property
|
||||||
|
def forum_infos(self):
|
||||||
|
raise PermissionDenied
|
||||||
|
|
||||||
def is_in_group(self, group_name):
|
def is_in_group(self, group_name):
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user