allow me to change settings in devrama

master
Aevann 2023-02-09 06:02:39 +02:00
parent a9ec1735c9
commit fc9b55c776
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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():