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