diff --git a/src/Module/Admin/BaseUsers.php b/src/Module/Admin/BaseUsers.php index 97b10f41f..37f7acdf6 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 c2909088a..c381cf0cf 100644 --- a/view/theme/frio/templates/admin/users/active.tpl +++ b/view/theme/frio/templates/admin/users/active.tpl @@ -129,15 +129,9 @@