forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-01-24 17:42:03 +02:00
parent f7560fb30d
commit ad1d3c46b5
1 changed files with 1 additions and 2 deletions

View File

@ -28,10 +28,9 @@ month = datetime.now().strftime('%B')
@app.post("/@<username>/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