From 8fd67fb1fcf25507c7364e814e356020e18a8fd8 Mon Sep 17 00:00:00 2001 From: Cory Sitko Date: Tue, 10 Oct 2017 18:14:19 -0400 Subject: [PATCH] UserBase methods should be properties not classmethods --- cps/ub.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cps/ub.py b/cps/ub.py index f867274e..fe1ba719 100644 --- a/cps/ub.py +++ b/cps/ub.py @@ -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