mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +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="
|
$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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user