From d98f8afde8120a6942f2b06c3eda5a8a29546928 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 29 Jun 2023 22:51:48 +0300 Subject: [PATCH] unlock /donate to loggedoutcels --- files/routes/static.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/static.py b/files/routes/static.py index 506a1bc59..10ab7a1bb 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -408,5 +408,6 @@ def transfers(v:User): @limiter.limit(DEFAULT_RATELIMIT) @is_not_permabanned def donate(v): - if v.shadowbanned or v.chud == 1: abort(404) + if v.shadowbanned or v.chud == 1 or v.is_permabanned: + abort(404) return render_template(f'donate.html', v=v)