forked from MarseyWorld/MarseyWorld
allow me to change settings in devrama
parent
a9ec1735c9
commit
fc9b55c776
|
@ -863,7 +863,8 @@ elif SITE == 'watchpeopledie.tv':
|
|||
5: "Survivor",
|
||||
6: "Jigsaw"
|
||||
}
|
||||
|
||||
elif SITE == 'devrama.net':
|
||||
AEVANN_ID = 7
|
||||
else: # localhost or testing environment implied
|
||||
FEATURES['ASSET_SUBMISSIONS'] = True
|
||||
FEATURES['PRONOUNS'] = True
|
||||
|
|
|
@ -332,7 +332,7 @@ def admin_home(v):
|
|||
@limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID)
|
||||
@admin_level_required(PERMS['SITE_SETTINGS'])
|
||||
def change_settings(v:User, setting):
|
||||
if SITE == 'devrama.net':
|
||||
if SITE == 'devrama.net' and v.id != AEVANN_ID:
|
||||
abort(403, "Can't change this shit in devrama!")
|
||||
|
||||
if setting not in get_settings().keys():
|
||||
|
|
Loading…
Reference in New Issue