From 9c6436a27d3230cc5795b52b542057d67162e8b4 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Fri, 24 Oct 2014 23:46:03 -0400 Subject: [PATCH] #59 Don't show the deactivate icon for the current user --- admin/manage_users.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/admin/manage_users.php b/admin/manage_users.php index fc93703d..30818572 100644 --- a/admin/manage_users.php +++ b/admin/manage_users.php @@ -429,11 +429,14 @@ while ($myuser = hesk_dbFetchAssoc($res)) $autoassign_code = ''; } - /* Is the user active? */ - if ($myuser['active']) { - $activeMarkup = ''; - } else { - $activeMarkup = ''; + $activeMarkup = ''; + if ($myuser['id'] != $_SESSION['id']) { + /* Is the user active? */ + if ($myuser['active']) { + $activeMarkup = ''; + } else { + $activeMarkup = ''; + } } echo <<