From a8f62aecdbb997d34b2786c7fa11a534c502881c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 5 Aug 2022 20:45:43 +0200 Subject: [PATCH] reserve app management to JL3 --- files/routes/oauth.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/files/routes/oauth.py b/files/routes/oauth.py index fd517063e..bddb8d3f0 100644 --- a/files/routes/oauth.py +++ b/files/routes/oauth.py @@ -169,7 +169,7 @@ def admin_app_approve(v, aid): @app.post("/admin/app/revoke/") @limiter.limit("1/second;30/minute;200/hour;1000/day") -@admin_level_required(2) +@admin_level_required(3) def admin_app_revoke(v, aid): app = g.db.get(OauthApp, aid) @@ -193,7 +193,7 @@ def admin_app_revoke(v, aid): @app.post("/admin/app/reject/") @limiter.limit("1/second;30/minute;200/hour;1000/day") -@admin_level_required(2) +@admin_level_required(3) def admin_app_reject(v, aid): app = g.db.get(OauthApp, aid) @@ -217,7 +217,7 @@ def admin_app_reject(v, aid): @app.get("/admin/app/") -@admin_level_required(2) +@admin_level_required(3) def admin_app_id(v, aid): aid=aid @@ -239,7 +239,7 @@ def admin_app_id(v, aid): ) @app.get("/admin/app//comments") -@admin_level_required(2) +@admin_level_required(3) def admin_app_id_comments(v, aid): aid=aid @@ -265,7 +265,7 @@ def admin_app_id_comments(v, aid): @app.get("/admin/apps") -@admin_level_required(2) +@admin_level_required(3) def admin_apps_list(v): apps = g.db.query(OauthApp).order_by(OauthApp.id.desc()).all()