Skip to content
Snippets Groups Projects
Commit a5c7997d authored by Peter Rotich's avatar Peter Rotich
Browse files

Don't email bomb admin on ticket rejections

Disable email alert sent to admin when a warning is logged due to ticket
rejection e.g when banned email or max open limit is reached.
parent 5e492449
No related branches found
No related tags found
No related merge requests found
...@@ -2184,7 +2184,7 @@ class Ticket { ...@@ -2184,7 +2184,7 @@ class Ticket {
$errors = array( $errors = array(
'errno' => 403, 'errno' => 403,
'err' => 'This help desk is for use by authorized users only'); 'err' => 'This help desk is for use by authorized users only');
$ost->logWarning('Ticket Denied', $message); $ost->logWarning('Ticket Denied', $message, false);
return 0; return 0;
}; };
...@@ -2237,7 +2237,8 @@ class Ticket { ...@@ -2237,7 +2237,8 @@ class Ticket {
$errors = array('err' => "You've reached the maximum open tickets allowed."); $errors = array('err' => "You've reached the maximum open tickets allowed.");
$ost->logWarning('Ticket denied -'.$vars['email'], $ost->logWarning('Ticket denied -'.$vars['email'],
sprintf('Max open tickets (%d) reached for %s ', sprintf('Max open tickets (%d) reached for %s ',
$cfg->getMaxOpenTickets(), $vars['email'])); $cfg->getMaxOpenTickets(), $vars['email']),
false);
return 0; return 0;
} }
......
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