Resolves Issue 878 - Restriction removed that required at least one user account to remain in a domain. Superadmin/Admin still not allowed to delete their own account (for obvious reasons).
This commit is contained in:
parent
ed6aa9107f
commit
58acf42682
|
|
@ -186,7 +186,7 @@ $field_value = $_REQUEST["field_value"];
|
|||
echo "<a href='usersupdate.php?id=".$row['user_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
|
||||
}
|
||||
if (permission_exists('user_delete')) {
|
||||
if ($_SESSION["user"]["user_uuid"] != $row['user_uuid'] && $result_count > 1) {
|
||||
if ($_SESSION["user"]["user_uuid"] != $row['user_uuid']) {
|
||||
echo "<a href='userdelete.php?id=".$row['user_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">".$v_link_label_delete."</a>";
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue