haldis/app/models/anonymous_user.py

18 lines
315 B
Python
Raw Normal View History

class AnonymouseUser:
id = None
2019-09-07 22:41:50 +00:00
def is_active(self) -> bool:
return False
2019-09-07 22:41:50 +00:00
def is_authenticated(self) -> bool:
return False
2019-09-07 22:41:50 +00:00
def is_anonymous(self) -> bool:
return True
2019-09-07 22:41:50 +00:00
def is_admin(self) -> bool:
return False
2019-09-07 22:41:50 +00:00
def get_id(self) -> None:
return None