diff --git a/src/Module/Admin/BaseUsers.php b/src/Module/Admin/BaseUsers.php index 97b10f41fb..37f7acdf62 100644 --- a/src/Module/Admin/BaseUsers.php +++ b/src/Module/Admin/BaseUsers.php @@ -120,7 +120,7 @@ abstract class BaseUsers extends BaseAdmin $user['login_date'] = Temporal::getRelativeDate($user['login_date']); $user['lastitem_date'] = Temporal::getRelativeDate($user['last-item']); $user['is_admin'] = in_array($user['email'], $adminlist); - $user['is_deletable'] = (intval($user['uid']) != local_user()); + $user['is_deletable'] = !$user['account_removed'] && intval($user['uid']) != local_user(); $user['deleted'] = ($user['account_removed'] ? Temporal::getRelativeDate($user['account_expires_on']) : False); return $user; diff --git a/view/theme/frio/templates/admin/users/active.tpl b/view/theme/frio/templates/admin/users/active.tpl index c2909088ac..c381cf0cf8 100644 --- a/view/theme/frio/templates/admin/users/active.tpl +++ b/view/theme/frio/templates/admin/users/active.tpl @@ -129,15 +129,9 @@