Skip to content
Snippets Groups Projects
Commit 93922335 authored by Jared Hancock's avatar Jared Hancock
Browse files

thread: Log remote IP for staff replies and notes

parent e8cedfd6
No related branches found
No related tags found
No related merge requests found
......@@ -1823,6 +1823,9 @@ class Ticket {
if(!$vars['staffId'] && $thisstaff)
$vars['staffId'] = $thisstaff->getId();
if (!$vars['ip_address'] && $_SERVER['REMOTE_ADDR'])
$vars['ip_address'] = $_SERVER['REMOTE_ADDR'];
if(!($response = $this->getThread()->addResponse($vars, $errors)))
return null;
......@@ -1942,6 +1945,8 @@ class Ticket {
}elseif($poster) { //string
$vars['poster'] = $poster;
}
if (!$vars['ip_address'] && $_SERVER['REMOTE_ADDR'])
$vars['ip_address'] = $_SERVER['REMOTE_ADDR'];
if(!($note=$this->getThread()->addNote($vars, $errors)))
return null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment