mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Fixed a bug where users where able to delete there own account
This commit is contained in:
parent
341d218664
commit
51fcd9558a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user