From fc9b55c77667d985c20a45532a35b6fce91c42db Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 9 Feb 2023 06:02:39 +0200 Subject: [PATCH] allow me to change settings in devrama --- files/helpers/config/const.py | 3 ++- files/routes/admin.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index c73c497bab..4beb14b267 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -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 diff --git a/files/routes/admin.py b/files/routes/admin.py index 395f9b8e03..f9880e18ae 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -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():