Differential D20024 Diff 47821 src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
| Show First 20 Lines • Show All 4,910 Lines • ▼ Show 20 Lines | if (!$is_mfa) { | ||||
| return $xactions; | return $xactions; | ||||
| } | } | ||||
| $engine = PhabricatorEditEngineMFAEngine::newEngineForObject($object) | $engine = PhabricatorEditEngineMFAEngine::newEngineForObject($object) | ||||
| ->setViewer($this->getActor()); | ->setViewer($this->getActor()); | ||||
| $require_mfa = $engine->shouldRequireMFA(); | $require_mfa = $engine->shouldRequireMFA(); | ||||
| if (!$require_mfa) { | if (!$require_mfa) { | ||||
| $try_mfa = $engine->shouldTryMFA(); | |||||
| if ($try_mfa) { | |||||
| $this->setShouldRequireMFA(true); | |||||
| } | |||||
| return $xactions; | return $xactions; | ||||
| } | } | ||||
| $type_mfa = PhabricatorTransactions::TYPE_MFA; | $type_mfa = PhabricatorTransactions::TYPE_MFA; | ||||
| $has_mfa = false; | $has_mfa = false; | ||||
| foreach ($xactions as $xaction) { | foreach ($xactions as $xaction) { | ||||
| if ($xaction->getTransactionType() === $type_mfa) { | if ($xaction->getTransactionType() === $type_mfa) { | ||||
| Show All 28 Lines | |||||