From ad1d3c46b589b867fba8c3870a2ea56b08eff727 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 24 Jan 2022 17:42:03 +0200 Subject: [PATCH] cxcx --- files/routes/admin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index f13299e399..383e11e234 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -28,10 +28,9 @@ month = datetime.now().strftime('%B') @app.post("/@/make_admin") -@limiter.limit("1/second;30/minute;200/hour;1000/day") +@limiter.limit("1/day") @admin_level_required(3) def make_admin(v, username): - if request.host == 'rdrama.net': abort(403) user = get_user(username) if not user: abort(404) user.admin_level = 2