diff --git a/core/domain_settings/domains.php b/core/domain_settings/domains.php index c94365a99f..083eb8cc5c 100644 --- a/core/domain_settings/domains.php +++ b/core/domain_settings/domains.php @@ -184,8 +184,8 @@ else { if (permission_exists('domain_edit')) { echo "$v_link_label_edit"; } - if (permission_exists('domain_delete') && $result_count > 1) { - if ($_SESSION["groups"][0]["domain_uuid"] != $row['domain_uuid']) { + if (permission_exists('domain_delete')) { + if ($_SESSION["groups"][0]["domain_uuid"] != $row['domain_uuid'] && $result_count > 1) { echo "$v_link_label_delete"; } else { diff --git a/core/users/users.php b/core/users/users.php index bca4703d65..a8d0a01ca3 100644 --- a/core/users/users.php +++ b/core/users/users.php @@ -163,8 +163,8 @@ echo " \n"; if (permission_exists('user_edit')) { echo "$v_link_label_edit"; } - if (permission_exists('user_delete') && $result_count > 1) { - if ($_SESSION["user"]["user_uuid"] != $row['user_uuid']) { + if (permission_exists('user_delete')) { + if ($_SESSION["user"]["user_uuid"] != $row['user_uuid'] && $result_count > 1) { echo "".$v_link_label_delete.""; } else {