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 @@ {{if $u.is_deletable}} - {{if $u.blocked}} - - - - {{else}} - {{/if}} diff --git a/view/theme/frio/templates/admin/users/blocked.tpl b/view/theme/frio/templates/admin/users/blocked.tpl index 3b8055651..f53dc16b7 100644 --- a/view/theme/frio/templates/admin/users/blocked.tpl +++ b/view/theme/frio/templates/admin/users/blocked.tpl @@ -86,6 +86,7 @@ {{/if}} {{if $u.is_admin}}{{/if}} + {{if $u.blocked}}{{/if}} {{if $u.account_expired}}{{/if}} {{/if}} diff --git a/view/theme/frio/templates/admin/users/index.tpl b/view/theme/frio/templates/admin/users/index.tpl index 41226eb44..e8ae271bb 100644 --- a/view/theme/frio/templates/admin/users/index.tpl +++ b/view/theme/frio/templates/admin/users/index.tpl @@ -87,6 +87,8 @@ {{/if}} {{if $u.is_admin}}{{/if}} + {{if $u.blocked}}{{/if}} + {{if $u.deleted}}{{/if}} {{if $u.account_expired}}{{/if}} {{/if}} @@ -131,7 +133,7 @@ {{if $u.is_deletable}} {{if $u.blocked}} - + {{else}}