haldis/app/models/anonymous_user.py
2019-09-12 20:50:17 +02:00

21 lines
412 B
Python

"AnonymouseUser for people who are not logged in the normal way"
# pylint: disable=R0201,C0111
class AnonymouseUser:
id = None
def is_active(self) -> bool:
return False
def is_authenticated(self) -> bool:
return False
def is_anonymous(self) -> bool:
return True
def is_admin(self) -> bool:
return False
def get_id(self) -> None:
return None