forked from rDrama/rDrama
perms
parent
945cd1ca3d
commit
03b3e690e4
|
@ -725,11 +725,6 @@ elif SITE in {'watchpeopledie.tv', 'marsey.world'}:
|
||||||
FEATURES['IP_LOGGING'] = True
|
FEATURES['IP_LOGGING'] = True
|
||||||
HOUSES = ["Furry","Femboy","Vampire","Edgy"]
|
HOUSES = ["Furry","Femboy","Vampire","Edgy"]
|
||||||
|
|
||||||
PERMS['POST_COMMENT_EDITING'] = 3
|
|
||||||
PERMS['MODS_EVERY_HOLE'] = 3
|
|
||||||
PERMS['VIEW_EMAILS'] = 3
|
|
||||||
PERMS['IS_PERMA_PROGSTACKED'] = 4
|
|
||||||
|
|
||||||
HOLE_BANNER_LIMIT = 69420
|
HOLE_BANNER_LIMIT = 69420
|
||||||
|
|
||||||
ERROR_TITLES.update({
|
ERROR_TITLES.update({
|
||||||
|
|
|
@ -192,6 +192,8 @@ def daily_chart(v):
|
||||||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
||||||
@admin_level_required(PERMS['VIEW_PATRONS'])
|
@admin_level_required(PERMS['VIEW_PATRONS'])
|
||||||
def patrons(v):
|
def patrons(v):
|
||||||
|
if AEVANN_ID and v.id != AEVANN_ID:
|
||||||
|
abort(404)
|
||||||
ids = [x[0] for x in g.db.query(User.id).filter(User.lifetimedonated > 0).order_by(User.email, User.truescore.desc()).distinct(User.email)]
|
ids = [x[0] for x in g.db.query(User.id).filter(User.lifetimedonated > 0).order_by(User.email, User.truescore.desc()).distinct(User.email)]
|
||||||
users = g.db.query(User).filter(User.id.in_(ids)).order_by(User.patron.desc(), User.truescore.desc()).all()
|
users = g.db.query(User).filter(User.id.in_(ids)).order_by(User.patron.desc(), User.truescore.desc()).all()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue