Differential D15054 Diff 36358 src/applications/project/editor/PhabricatorProjectTransactionEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/editor/PhabricatorProjectTransactionEditor.php
| Show First 20 Lines • Show All 576 Lines • ▼ Show 20 Lines | final class PhabricatorProjectTransactionEditor | ||||
| } | } | ||||
| protected function willPublish(PhabricatorLiskDAO $object, array $xactions) { | protected function willPublish(PhabricatorLiskDAO $object, array $xactions) { | ||||
| // NOTE: We're using the omnipotent user here because the original actor | // NOTE: We're using the omnipotent user here because the original actor | ||||
| // may no longer have permission to view the object. | // may no longer have permission to view the object. | ||||
| return id(new PhabricatorProjectQuery()) | return id(new PhabricatorProjectQuery()) | ||||
| ->setViewer(PhabricatorUser::getOmnipotentUser()) | ->setViewer(PhabricatorUser::getOmnipotentUser()) | ||||
| ->withPHIDs(array($object->getPHID())) | ->withPHIDs(array($object->getPHID())) | ||||
| ->needMembers(true) | ->needAncestorMembers(true) | ||||
| ->executeOne(); | ->executeOne(); | ||||
| } | } | ||||
| protected function shouldSendMail( | protected function shouldSendMail( | ||||
| PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
| array $xactions) { | array $xactions) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 327 Lines • Show Last 20 Lines | |||||