mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01:37:02 +02:00
Create an audit entry in case of rejecting the removal of the message
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
@ -37,6 +37,8 @@ class ControllerMessageRejectRemove extends Controller {
|
||||
|
||||
// Shouldn't we ask for a token or something as well?
|
||||
|
||||
AUDIT(ACTION_REJECT_REMOVAL, '', '', $id, '');
|
||||
|
||||
$db->query("UPDATE " . TABLE_DELETED . " SET deleted=0, approver=?, date2=?, reason2=? WHERE id=?", [$this->data['username'], NOW, $this->request->post['reason2'], $id]);
|
||||
syslog(LOG_INFO, $this->data['username'] . " rejected removing message: $id");
|
||||
|
||||
|
Reference in New Issue
Block a user