mirror of
https://github.com/simple-login/app.git
synced 2024-09-29 21:21:29 +02:00
remove user.is_cancel()
This commit is contained in:
parent
f7f1e7f358
commit
2a837f9213
@ -262,15 +262,6 @@ class User(db.Model, ModelMixin, UserMixin):
|
|||||||
|
|
||||||
return True
|
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:
|
def is_premium(self) -> bool:
|
||||||
"""
|
"""
|
||||||
user is premium if they:
|
user is premium if they:
|
||||||
|
Loading…
Reference in New Issue
Block a user