Skip to content
Snippets Groups Projects
Commit f54acf54 authored by Peter Rotich's avatar Peter Rotich Committed by Jared Hancock
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 ea962096
No related branches found
No related tags found
No related merge requests found
......@@ -2197,7 +2197,8 @@ class Ticket {
'errno' => 403,
'err' => 'This help desk is for use by authorized
users only');
$ost->logWarning('Ticket denied', 'Banned email - '.$vars['email']);
$ost->logWarning('Ticket denied', 'Banned email - '
.$vars['email'], true);
return 0;
}
......@@ -2211,7 +2212,8 @@ class Ticket {
$errors = array('err' => "You've reached the maximum open tickets allowed.");
$ost->logWarning('Ticket denied -'.$vars['email'],
sprintf('Max open tickets (%d) reached for %s ',
$cfg->getMaxOpenTickets(), $vars['email']));
$cfg->getMaxOpenTickets(), $vars['email']),
false);
return 0;
}
......@@ -2228,7 +2230,7 @@ class Ticket {
only");
$ost->logWarning('Ticket denied',
sprintf('Ticket rejected ( %s) by filter "%s"',
$vars['email'], $filter->getName()));
$vars['email'], $filter->getName()), true);
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