From 51fcd9558a5aa7111d6bf29d446aa5ebc62a0c3e Mon Sep 17 00:00:00 2001 From: jengo <jengo@alumni.egroupware.org> Date: Wed, 27 Sep 2000 09:05:02 +0000 Subject: [PATCH] Fixed a bug where users where able to delete there own account --- admin/accounts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/accounts.php b/admin/accounts.php index 63a67a3b10..d726f7480c 100755 --- a/admin/accounts.php +++ b/admin/accounts.php @@ -77,7 +77,7 @@ $t->set_var("row_edit",'<a href="'.$phpgw->link("editaccount.php","account_id=" . $phpgw->db->f("account_id")) . '"> ' . lang("Edit") . ' </a>'); - if ($phpgw_info["user"]["userid"] != $phpgw->db->f("loginid")) { + if ($phpgw_info["user"]["userid"] != $phpgw->db->f("account_lid")) { $t->set_var("row_delete",'<a href="' . $phpgw->link("deleteaccount.php",'account_id=' . $phpgw->db->f("account_id")) . '"> '.lang("Delete").' </a>'); } else {