fix viewing emails

pull/216/head
Aevann 2023-10-27 02:02:40 +03:00
parent e4556762ae
commit bc4d5cfe5d
3 changed files with 5 additions and 3 deletions

View File

@ -384,6 +384,8 @@ PERMS = { # Minimum admin_level to perform action.
'CLAIM_REWARDS_ALL_USERS': 4,
'IGNORE_AWARD_IMMUNITY': 4,
'INSERT_TRANSACTION': 4,
'VIEW_EMAILS': 5,
}
FEATURES = {

View File

@ -320,7 +320,7 @@ def sign_up_post(v):
g.db.flush()
if new_user.id == 5:
new_user.admin_level = 4
new_user.admin_level = 5
new_user.coins = 100000000
new_user.marseybux = 100000000
session["history"] = []

View File

@ -110,7 +110,7 @@
<span id="profile--lastactive" class="ml-2">last active <span id="profile--lastactive--time" data-bs-toggle="tooltip" data-bs-placement="bottom" data-nonce="{{g.nonce}}" data-onmouseover="timestamp(this, '{{u.last_active}}')">{{u.last_active_date}}</span></span>
{%- endif %}
{% if SITE_NAME == 'WPD' and v and v.id in [AEVANN_ID, CARP_ID] -%}
{% if SITE_NAME == 'WPD' and v and v.admin_level >= PERMS['VIEW_EMAILS'] -%}
<div id="profile--email" class="mt-2">Email: {{u.email}}</div>
{%- endif %}
</div>
@ -413,7 +413,7 @@
<br><span id="profile-mobile--lastactive">last active <span id="profile-mobile--lastactive--time" data-bs-toggle="tooltip" data-bs-placement="bottom" data-nonce="{{g.nonce}}" data-onmouseover="timestamp(this, '{{u.last_active}}')" class="font-weight-bold">{{u.last_active_date}}</span></span>
{%- endif %}
{% if SITE_NAME == 'WPD' and v and v.id in [AEVANN_ID, CARP_ID] -%}
{% if SITE_NAME == 'WPD' and v and v.admin_level >= PERMS['VIEW_EMAILS'] -%}
<div id="profile-mobile--email">Email: {{u.email}}</div>
{%- endif %}
</div>