disallow perma-punished users from /donate

pull/136/head
Aevann 2023-03-05 18:25:13 +02:00
parent c3804ca06a
commit 2fb93834f9
1 changed files with 2 additions and 1 deletions

View File

@ -387,6 +387,7 @@ def transfers(v:User):
@app.get('/donate')
@limiter.limit(DEFAULT_RATELIMIT)
@auth_desired_with_logingate
@is_not_permabanned
def donate(v):
if v.shadowbanned or v.agendaposter == 1: abort(404)
return render_template(f'donate.html', v=v)