mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +01:00
Stop trying to CC merchants on invoices/receipts
Summary: Fixes T13341. Currently, cart emails (invoices/receipts) are sent to members of the associated merchant account. This was just a simple way to keep an eye on things when this was first written. The system works fine, and recent changes (almost certainly D20525) stopped these emails from working (presumably because of the slightly weird merchant permissions model). This could be sorted out in more detail, but it looks like the path forward is to introduce a side channel for email anyway (via T8389), and that's a better way to implement this behavior since it means the normal recipients won't see a bunch of random staff/merchant email addresses on their receipts. Test Plan: Grepped for `merchant` in this editor. Maniphest Tasks: T13341 Differential Revision: https://secure.phabricator.com/D20696
This commit is contained in:
parent
6c41508906
commit
87f878ec8a
1 changed files with 2 additions and 6 deletions
|
@ -188,8 +188,8 @@ final class PhortuneCartEditor
|
||||||
protected function getMailTo(PhabricatorLiskDAO $object) {
|
protected function getMailTo(PhabricatorLiskDAO $object) {
|
||||||
$phids = array();
|
$phids = array();
|
||||||
|
|
||||||
// Reload the cart to pull merchant and account information, in case we
|
// Reload the cart to pull account information, in case we just created the
|
||||||
// just created the object.
|
// object.
|
||||||
$cart = id(new PhortuneCartQuery())
|
$cart = id(new PhortuneCartQuery())
|
||||||
->setViewer($this->requireActor())
|
->setViewer($this->requireActor())
|
||||||
->withPHIDs(array($object->getPHID()))
|
->withPHIDs(array($object->getPHID()))
|
||||||
|
@ -199,10 +199,6 @@ final class PhortuneCartEditor
|
||||||
$phids[] = $account_member;
|
$phids[] = $account_member;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($cart->getMerchant()->getMemberPHIDs() as $merchant_member) {
|
|
||||||
$phids[] = $merchant_member;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $phids;
|
return $phids;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue