From 98397e7d3fca4042bd4b402ceb2959e5ecf74c1a Mon Sep 17 00:00:00 2001 From: justcool393 Date: Wed, 5 Oct 2022 23:27:34 -0700 Subject: [PATCH] admin home and user last active viewing --- files/templates/header.html | 4 ++-- files/templates/user_listing.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/templates/header.html b/files/templates/header.html index 93589d8fa..ba223062a 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -114,7 +114,7 @@ {% endif %} {% if not err %} - {% if v and v.admin_level > 1 %} + {% if v and v.admin_level >= PERMS['ADMIN_HOME_VISIBLE'] %} {% endif %} @@ -159,7 +159,7 @@ {% endif %} - {% if v.admin_level > 1 %} + {% if v.admin_level >= PERMS['ADMIN_HOME_VISIBLE'] %} diff --git a/files/templates/user_listing.html b/files/templates/user_listing.html index c56758741..920aa0997 100644 --- a/files/templates/user_listing.html +++ b/files/templates/user_listing.html @@ -29,7 +29,7 @@
Joined on
- {% if v.admin_level >= 2 -%} + {% if v.admin_level >= PERMS['VIEW_LAST_ACTIVE'] -%}
Last active on
{%- endif %}