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",'db->f("account_id")) . '"> ' . lang("Edit") . ' ');
- if ($phpgw_info["user"]["userid"] != $phpgw->db->f("loginid")) {
+ if ($phpgw_info["user"]["userid"] != $phpgw->db->f("account_lid")) {
$t->set_var("row_delete",'db->f("account_id")) . '"> '.lang("Delete").' ');
} else {