do not add uploader and reviewer as recipient

This commit is contained in:
Uwe Steinmann 2018-02-20 17:29:49 +01:00
parent af066bb15b
commit 87519d6d08

View File

@ -293,8 +293,8 @@ if (isset($_POST["grpIndRecipients"])) {
if($group = $dms->getGroup($grp)) {
$members = $group->getUsers();
foreach($members as $member) {
/* Do not add the uploader itself and approvers */
if($member->getID() != $user->getID() && !in_array($member->getID(), $approvers['i']))
/* Do not add the uploader itself and reviewers */
if(!$settings->_enableFilterReceipt || ($member->getID() != $user->getID() && !in_array($member->getID(), $reviewers['i'])))
$recipients["i"][] = $member->getID();
}
}