From f531b127271c310667727ed3c0f6d6600fcc117a Mon Sep 17 00:00:00 2001 From: justcool393 Date: Wed, 5 Oct 2022 22:01:02 -0700 Subject: [PATCH] alt seeing eye --- files/helpers/const.py | 1 + files/templates/userpage.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index f71a9e5c8..b29ab6e86 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -153,6 +153,7 @@ PERMS = { # Minimum admin_level to perform action. 'VIEW_CLUB': 1, 'VIEW_CHUDRAMA': 1, 'VIEW_PRIVATE_PROFILES': 2, + 'VIEW_ALTS': 2, 'PRINT_MARSEYBUX_FOR_KIPPY_ON_PCMEMES': 3, 'VIEW_ACTIVE_USERS': 2, 'MERGE_USERS': 3, # note: extra check for Aevann diff --git a/files/templates/userpage.html b/files/templates/userpage.html index c97a5cb2f..c4da5afda 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -387,7 +387,7 @@ {% if u.is_private %}

User has private mode enabled.

{% endif %} - {% if v and (v.admin_level > 1 or v.alt) %} + {% if v and (v.admin_level >= PERMS['VIEW_ALTS'] or v.alt) %} Alts: