Page MenuHomePhabricator

D20072.diff
No OneTemporary

D20072.diff

diff --git a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
--- a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
+++ b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
@@ -2669,9 +2669,15 @@
$transaction_type) {
$errors = array();
- $factors = id(new PhabricatorAuthFactorConfig())->loadAllWhere(
- 'userPHID = %s',
- $this->getActingAsPHID());
+ $factors = id(new PhabricatorAuthFactorConfigQuery())
+ ->setViewer($this->getActor())
+ ->withUserPHIDs(array($this->getActingAsPHID()))
+ ->withFactorProviderStatuses(
+ array(
+ PhabricatorAuthFactorProviderStatus::STATUS_ACTIVE,
+ PhabricatorAuthFactorProviderStatus::STATUS_DEPRECATED,
+ ))
+ ->execute();
foreach ($xactions as $xaction) {
if (!$factors) {

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 19, 12:40 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7390423
Default Alt Text
D20072.diff (987 B)

Event Timeline