add perm for kippy's marseybux printer

master
justcool393 2022-10-05 20:26:39 -07:00
parent c0f753e101
commit 1a0785d497
2 changed files with 3 additions and 1 deletions

View File

@ -145,6 +145,7 @@ PERMS = { # Minimum admin_level to perform action.
'LOTTERY_ADMIN': 3, 'LOTTERY_ADMIN': 3,
'LOTTERY_VIEW_PARTICIPANTS': 2, 'LOTTERY_VIEW_PARTICIPANTS': 2,
'VIEW_MODMAIL': 2, 'VIEW_MODMAIL': 2,
'PRINT_MARSEYBUX_FOR_KIPPY_ON_PCMEMES': 3,
} }
FEATURES = { FEATURES = {

View File

@ -22,8 +22,9 @@ import requests
from urllib.parse import quote, urlencode from urllib.parse import quote, urlencode
@app.post('/kippy') @app.post('/kippy')
@admin_level_required(3) @admin_level_required(PERMS['PRINT_MARSEYBUX_FOR_KIPPY_ON_PCMEMES'])
def kippy(v): def kippy(v):
if SITE == 'rdrama.net': abort(404)
kippy = get_account(KIPPY_ID) kippy = get_account(KIPPY_ID)
kippy.procoins += 10000 kippy.procoins += 10000
g.db.add(kippy) g.db.add(kippy)