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

Code Improvement

parent 73f5ac09
Branches
Tags
No related merge requests found
......@@ -1370,8 +1370,8 @@ implements RestrictedAccess, Threadable, Searchable {
return false;
}
function checkReply($userType, $replyType, $forceAlert=false) {
if ($userType == 'cc' && ($replyType == 'reply-all' || $forceAlert))
function checkReply($userType, $replyType) {
if ($userType == 'cc' && $replyType == 'reply-all')
return true;
if ($userType == 'user' && ($replyType == 'reply-all' || $replyType == 'reply-user'))
......@@ -2944,7 +2944,7 @@ implements RestrictedAccess, Threadable, Searchable {
$attachments = $cfg->emailAttachments() ? $response->getAttachments() : array();
//Cc collaborators
$collabsCc = array();
if ($vars['ccs'] && Ticket::checkReply('cc', $vars['emailreply'], true)) {
if ($vars['ccs']) {
$collabsCc[] = Collaborator::getCollabList($vars['ccs']);
$collabsCc['cc'] = $collabsCc[0];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment