Fixed a bug where users where able to delete there own account

This commit is contained in:
jengo 2000-09-27 09:05:02 +00:00
parent 341d218664
commit 51fcd9558a

View File

@ -77,7 +77,7 @@
$t->set_var("row_edit",'<a href="'.$phpgw->link("editaccount.php","account_id=" $t->set_var("row_edit",'<a href="'.$phpgw->link("editaccount.php","account_id="
. $phpgw->db->f("account_id")) . '"> ' . lang("Edit") . ' </a>'); . $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=' $t->set_var("row_delete",'<a href="' . $phpgw->link("deleteaccount.php",'account_id='
. $phpgw->db->f("account_id")) . '"> '.lang("Delete").' </a>'); . $phpgw->db->f("account_id")) . '"> '.lang("Delete").' </a>');
} else { } else {