Minor Tweak: Enhanced delete own domain/user prevention.

This commit is contained in:
Nate Jones
2014-06-17 21:27:10 +00:00
parent 81d591cd9d
commit 1b8e46d699
2 changed files with 4 additions and 4 deletions

View File

@@ -184,8 +184,8 @@ else {
if (permission_exists('domain_edit')) {
echo "<a href='domain_edit.php?id=".$row['domain_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
}
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 "<a href='domain_delete.php?id=".$row['domain_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";
}
else {