From: Nik Okuntseff Date: Wed, 2 Jan 2019 15:04:31 +0000 (+0000) Subject: Added audit info on user delete. X-Git-Tag: timetracker_1.19-1~364 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c0f70b9c3c416d20ac3a5528d756e4783c88927c;p=timetracker.git Added audit info on user delete. --- diff --git a/WEB-INF/lib/ttUser.class.php b/WEB-INF/lib/ttUser.class.php index 1bfd6f44..36f9163f 100644 --- a/WEB-INF/lib/ttUser.class.php +++ b/WEB-INF/lib/ttUser.class.php @@ -695,7 +695,8 @@ class ttUser { return false; // Mark user as deleted. - $sql = "update tt_users set status = NULL where id = $user_id". + $modified_part = ', modified = now(), modified_ip = '.$mdb2->quote($_SERVER['REMOTE_ADDR']).', modified_by = '.$mdb2->quote($this->id); + $sql = "update tt_users set status = null $modified_part where id = $user_id". " and group_id = $group_id and org_id = $org_id"; $affected = $mdb2->exec($sql); if (is_a($affected, 'PEAR_Error')) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 6217c35c..b1acfc01 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.36.4699 | Copyright © Anuko | +  Anuko Time Tracker 1.18.36.4700 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve}