From 6f30cdeee5f478f9ec2184a1033f0956b70e4317 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 12 Nov 2022 11:56:23 +0200 Subject: [PATCH] only limit /settings/kofi to subscriptions --- files/routes/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/users.py b/files/routes/users.py index e4aacb48d..a06bc0566 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -1088,7 +1088,7 @@ def settings_kofi(v): if not (v.email and v.is_activated): abort(400, f"You must have a verified email to verify {patron} status and claim your rewards!") - transaction = g.db.query(Transaction).filter_by(email=v.email).order_by(Transaction.created_utc.desc()).first() + transaction = g.db.query(Transaction).filter_by(email=v.email, type="Subscription").order_by(Transaction.created_utc.desc()).first() if not transaction: abort(404, "Email not found")