mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Remove nested exception for stats and added property on AnonymusUser
This commit is contained in:
@ -423,6 +423,14 @@ class AnonymousUser(AuthAnonymousUser):
|
||||
def is_root(self):
|
||||
return False
|
||||
|
||||
@property
|
||||
def is_board_member(self):
|
||||
return False
|
||||
|
||||
@property
|
||||
def is_launderette_manager(self):
|
||||
return False
|
||||
|
||||
def is_in_group(self, group_name):
|
||||
"""
|
||||
The anonymous user is only the public group
|
||||
|
Reference in New Issue
Block a user