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_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 = {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue