From 1a0785d497ef0f649696dd772b37ca1e73f89de4 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Wed, 5 Oct 2022 20:26:39 -0700 Subject: [PATCH] add perm for kippy's marseybux printer --- files/helpers/const.py | 1 + files/routes/admin.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index 4b10651d0..f977abd97 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -145,6 +145,7 @@ PERMS = { # Minimum admin_level to perform action. 'LOTTERY_ADMIN': 3, 'LOTTERY_VIEW_PARTICIPANTS': 2, 'VIEW_MODMAIL': 2, + 'PRINT_MARSEYBUX_FOR_KIPPY_ON_PCMEMES': 3, } FEATURES = { diff --git a/files/routes/admin.py b/files/routes/admin.py index 2364781cf..cd81a72a5 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -22,8 +22,9 @@ import requests from urllib.parse import quote, urlencode @app.post('/kippy') -@admin_level_required(3) +@admin_level_required(PERMS['PRINT_MARSEYBUX_FOR_KIPPY_ON_PCMEMES']) def kippy(v): + if SITE == 'rdrama.net': abort(404) kippy = get_account(KIPPY_ID) kippy.procoins += 10000 g.db.add(kippy)