forked from MarseyWorld/MarseyWorld
add perm for kippy's marseybux printer
parent
c0f753e101
commit
1a0785d497
|
@ -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 = {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue