1
0
mirror of https://github.com/janeczku/calibre-web.git synced 2024-11-26 08:51:05 +02:00

UserBase methods should be properties not classmethods

This commit is contained in:
Cory Sitko 2017-10-10 18:14:19 -04:00
parent cc758517e7
commit 8fd67fb1fc

View File

@ -51,7 +51,7 @@ DEVELOPMENT = False
class UserBase:
@classmethod
@property
def is_authenticated(self):
return True
@ -97,11 +97,11 @@ class UserBase:
def role_delete_books(self):
return bool((self.role is not None)and(self.role & ROLE_DELETE_BOOKS == ROLE_DELETE_BOOKS))
@classmethod
@property
def is_active(self):
return True
@classmethod
@property
def is_anonymous(self):
return False