mirror of
https://github.com/simple-login/app.git
synced 2024-11-18 06:31:27 +08:00
remove user.is_cancel()
This commit is contained in:
parent
f7f1e7f358
commit
2a837f9213
1 changed files with 0 additions and 9 deletions
|
@ -262,15 +262,6 @@ class User(db.Model, ModelMixin, UserMixin):
|
|||
|
||||
return True
|
||||
|
||||
def is_cancel(self) -> bool:
|
||||
"""User has canceled their subscription but the subscription is still active,
|
||||
i.e. next_bill_date > now"""
|
||||
sub: Subscription = self.get_subscription()
|
||||
if sub and sub.cancelled:
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
def is_premium(self) -> bool:
|
||||
"""
|
||||
user is premium if they:
|
||||
|
|
Loading…
Reference in a new issue