From e8a61b133f6bf43b0942a52487d24dec4862e790 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 25 Jan 2023 18:52:16 +0200 Subject: [PATCH] im genuinely stupid --- files/helpers/config/modaction_types.py | 2 +- files/routes/static.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/config/modaction_types.py b/files/helpers/config/modaction_types.py index 7bba0ab53..0e04317b4 100644 --- a/files/helpers/config/modaction_types.py +++ b/files/helpers/config/modaction_types.py @@ -367,6 +367,6 @@ MODACTION_PRIVILEGED_TYPES = {'shadowban', 'unshadowban', 'mod_mute_user', 'mod_unmute_user', 'link_accounts', 'delink_accounts', 'progstack_post', 'progstack_comment'} -_MODACTION_PRIVILEGED_TYPES = {'progstack_post', 'progstack_comment'} +MODACTION_PRIVILEGED__TYPES = {'progstack_post', 'progstack_comment'} MODACTION_TYPES_FILTERED = deepcopy({t:v for t,v in MODACTION_TYPES.items() if not t in MODACTION_PRIVILEGED_TYPES}) diff --git a/files/routes/static.py b/files/routes/static.py index e99ce9516..068a7a6f0 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -149,7 +149,7 @@ def log(v:User): if not (v and v.admin_level >= PERMS['USER_SHADOWBAN']): actions = actions.filter(ModAction.kind.notin_(MODACTION_PRIVILEGED_TYPES)) if not (v and v.admin_level >= PERMS['PROGSTACK']): - actions = actions.filter(ModAction.kind.notin_(_MODACTION_PRIVILEGED_TYPES)) + actions = actions.filter(ModAction.kind.notin_(MODACTION_PRIVILEGED__TYPES)) if admin_id: actions = actions.filter_by(user_id=admin_id) kinds = set([x.kind for x in actions])