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)