minor devrama fix

pull/142/head
Aevann 2023-03-25 23:42:42 +02:00
parent 57bbf3b74f
commit eddea21c43
2 changed files with 1 additions and 3 deletions

View File

@ -908,6 +908,7 @@ elif SITE == 'devrama.net':
FEATURES['PRONOUNS'] = True
FEATURES['HOUSES'] = True
FEATURES['USERS_PERMANENT_WORD_FILTERS'] = True
PERMS["SITE_SETTINGS"] = 4
else: # localhost or testing environment implied
FEATURES['ASSET_SUBMISSIONS'] = True
FEATURES['PRONOUNS'] = True

View File

@ -371,9 +371,6 @@ 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' and v.id != AEVANN_ID:
abort(403, "Can't change this shit in devrama!")
if setting not in get_settings().keys():
abort(404, f"Setting '{setting}' not found")