patron perm and also move them around

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-10-05 22:48:55 -07:00
parent 0c0fa68cb4
commit 047013f92b
2 changed files with 3 additions and 2 deletions

View File

@ -158,10 +158,11 @@ PERMS = { # Minimum admin_level to perform action.
'VIEW_ALTS': 2,
'VIEW_PROFILE_VIEWS': 2,
'VIEW_SORTED_ADMIN_LIST': 3,
'PRINT_MARSEYBUX_FOR_KIPPY_ON_PCMEMES': 3,
'VIEW_ACTIVE_USERS': 2,
'VIEW_ALL_USERS': 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
'ADMIN_ADD': 3, # note: explicitly disabled on rDrama
'ADMIN_REMOVE': 3,

View File

@ -107,7 +107,7 @@ def daily_chart(v):
@app.get("/patrons")
@app.get("/paypigs")
@admin_level_required(3)
@admin_level_required(PERMS['VIEW_PATRONS'])
def patrons(v):
if AEVANN_ID and v.id not in (AEVANN_ID, CARP_ID, SNAKES_ID): abort(404)