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])