From c2f790ee860eb88f8a3a5f19e9f7412a95e6aa1c Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sun, 6 May 2012 12:31:15 +1000 Subject: [PATCH] Don't show "Last action" in ?/users if you don't have permission --- templates/mod/users.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/mod/users.html b/templates/mod/users.html index 761d3ddd..6ea6248f 100644 --- a/templates/mod/users.html +++ b/templates/mod/users.html @@ -4,7 +4,9 @@ {% trans 'Username' %} {% trans 'Type' %} {% trans 'Boards' %} - {% trans 'Last action' %} + {% if mod|hasPermission(config.mod.modlog) %} + {% trans 'Last action' %} + {% endif %} … @@ -34,17 +36,15 @@ {{ _boards|join(', ') }} {% endif %} - - {% if mod|hasPermission(config.mod.modlog) %} + {% if mod|hasPermission(config.mod.modlog) %} + {% if user.last %} {{ user.last|ago }} {% else %} {% trans 'never' %} {% endif %} - {% else %} - – - {% endif %} - + + {% endif %} {% if mod|hasPermission(config.mod.promoteusers) and user.type < constant('ADMIN') %}