Commit 8fd67fb1 authored by Cory Sitko's avatar Cory Sitko

UserBase methods should be properties not classmethods

parent cc758517
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment