mirror of
https://github.com/janeczku/calibre-web
synced 2025-11-10 20:23:04 +00:00
UserBase methods should be properties not classmethods
This commit is contained in:
@@ -51,7 +51,7 @@ DEVELOPMENT = False
|
|||||||
|
|
||||||
|
|
||||||
class UserBase:
|
class UserBase:
|
||||||
@classmethod
|
@property
|
||||||
def is_authenticated(self):
|
def is_authenticated(self):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@@ -97,11 +97,11 @@ class UserBase:
|
|||||||
def role_delete_books(self):
|
def role_delete_books(self):
|
||||||
return bool((self.role is not None)and(self.role & ROLE_DELETE_BOOKS == ROLE_DELETE_BOOKS))
|
return bool((self.role is not None)and(self.role & ROLE_DELETE_BOOKS == ROLE_DELETE_BOOKS))
|
||||||
|
|
||||||
@classmethod
|
@property
|
||||||
def is_active(self):
|
def is_active(self):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@classmethod
|
@property
|
||||||
def is_anonymous(self):
|
def is_anonymous(self):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user