diff --git a/files/helpers/const.py b/files/helpers/const.py index 548f96a90..db5d856d7 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -162,6 +162,7 @@ PERMS = { # Minimum admin_level to perform action. 'VIEW_ACTIVE_USERS': 2, 'VIEW_ALL_USERS': 2, 'VIEW_ALT_VOTES': 2, + 'VIEW_LAST_ACTIVE': 2, 'VIEW_PATRONS': 3, # note: extra check for Aevann, carp, or snakes 'PRINT_MARSEYBUX_FOR_KIPPY_ON_PCMEMES': 3, # note: explicitly disabled on rDrama 'MERGE_USERS': 3, # note: extra check for Aevann diff --git a/files/templates/userpage.html b/files/templates/userpage.html index 51a817f1f..48d9f6e44 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -151,7 +151,7 @@ joined {{u.created_date}} - {% if v and v.admin_level >= 2 -%} + {% if v and v.admin_level >= PERMS['VIEW_LAST_ACTIVE'] -%} last active {{u.last_active_date}} {%- endif %} @@ -515,7 +515,7 @@
joined {{u.created_date}} - {% if v and v.admin_level >= 2 -%} + {% if v and v.admin_level >= PERMS['VIEW_LAST_ACTIVE'] -%}
last active {{u.last_active_date}} {%- endif %}