forked from rDrama/rDrama
modmail viewing perm
parent
d709334180
commit
c2109fd611
|
@ -140,6 +140,7 @@ PERMS = { # Minimum admin_level to perform action.
|
|||
'BUY_GHOST_AWARD': 2,
|
||||
'LOTTERY_ADMIN': 3,
|
||||
'LOTTERY_VIEW_PARTICIPANTS': 2,
|
||||
'VIEW_MODMAIL': 2,
|
||||
}
|
||||
|
||||
FEATURES = {
|
||||
|
|
|
@ -36,7 +36,7 @@ def unread(v):
|
|||
|
||||
|
||||
@app.get("/notifications/modmail")
|
||||
@admin_level_required(2)
|
||||
@admin_level_required(PERMS['VIEW_MODMAIL'])
|
||||
def notifications_modmail(v):
|
||||
try: page = max(int(request.values.get("page", 1)), 1)
|
||||
except: page = 1
|
||||
|
|
Loading…
Reference in New Issue