haldis/app/models/anonymous_user.py
2019-09-08 00:41:50 +02:00

17 lines
315 B
Python

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