mirror of
https://github.com/simple-login/app.git
synced 2024-09-28 04:41:28 +02:00
small refactoring (#1120)
This commit is contained in:
parent
aac493ad2f
commit
75c710a6ab
@ -32,9 +32,9 @@ def pricing():
|
||||
flash("You already have a lifetime subscription", "error")
|
||||
return redirect(url_for("dashboard.index"))
|
||||
|
||||
sub: Subscription = current_user.get_paddle_subscription()
|
||||
paddle_sub: Subscription = current_user.get_paddle_subscription()
|
||||
# user who has canceled can re-subscribe
|
||||
if sub and not sub.cancelled:
|
||||
if paddle_sub and not paddle_sub.cancelled:
|
||||
flash("You already have an active subscription", "error")
|
||||
return redirect(url_for("dashboard.index"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user