forked from MarseyWorld/MarseyWorld
patron perm and also move them around
parent
0c0fa68cb4
commit
047013f92b
|
@ -158,10 +158,11 @@ PERMS = { # Minimum admin_level to perform action.
|
||||||
'VIEW_ALTS': 2,
|
'VIEW_ALTS': 2,
|
||||||
'VIEW_PROFILE_VIEWS': 2,
|
'VIEW_PROFILE_VIEWS': 2,
|
||||||
'VIEW_SORTED_ADMIN_LIST': 3,
|
'VIEW_SORTED_ADMIN_LIST': 3,
|
||||||
'PRINT_MARSEYBUX_FOR_KIPPY_ON_PCMEMES': 3,
|
|
||||||
'VIEW_ACTIVE_USERS': 2,
|
'VIEW_ACTIVE_USERS': 2,
|
||||||
'VIEW_ALL_USERS': 2,
|
'VIEW_ALL_USERS': 2,
|
||||||
'VIEW_ALT_VOTES': 2,
|
'VIEW_ALT_VOTES': 2,
|
||||||
|
'VIEW_PATRONS': 3, # note: extra check for Aevann, carp, or snakes
|
||||||
|
'PRINT_MARSEYBUX_FOR_KIPPY_ON_PCMEMES': 3,
|
||||||
'MERGE_USERS': 3, # note: extra check for Aevann
|
'MERGE_USERS': 3, # note: extra check for Aevann
|
||||||
'ADMIN_ADD': 3, # note: explicitly disabled on rDrama
|
'ADMIN_ADD': 3, # note: explicitly disabled on rDrama
|
||||||
'ADMIN_REMOVE': 3,
|
'ADMIN_REMOVE': 3,
|
||||||
|
|
|
@ -107,7 +107,7 @@ def daily_chart(v):
|
||||||
|
|
||||||
@app.get("/patrons")
|
@app.get("/patrons")
|
||||||
@app.get("/paypigs")
|
@app.get("/paypigs")
|
||||||
@admin_level_required(3)
|
@admin_level_required(PERMS['VIEW_PATRONS'])
|
||||||
def patrons(v):
|
def patrons(v):
|
||||||
if AEVANN_ID and v.id not in (AEVANN_ID, CARP_ID, SNAKES_ID): abort(404)
|
if AEVANN_ID and v.id not in (AEVANN_ID, CARP_ID, SNAKES_ID): abort(404)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue