Page MenuHomePhabricator

D20109.diff
No OneTemporary

D20109.diff

diff --git a/src/applications/people/storage/PhabricatorUser.php b/src/applications/people/storage/PhabricatorUser.php
--- a/src/applications/people/storage/PhabricatorUser.php
+++ b/src/applications/people/storage/PhabricatorUser.php
@@ -1131,9 +1131,10 @@
$this->openTransaction();
$this->delete();
- $externals = id(new PhabricatorExternalAccount())->loadAllWhere(
- 'userPHID = %s',
- $this->getPHID());
+ $externals = id(new PhabricatorExternalAccountQuery())
+ ->setViewer($engine->getViewer())
+ ->withUserPHIDs(array($this->getPHID()))
+ ->execute();
foreach ($externals as $external) {
$external->delete();
}

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 22, 9:26 AM (14 h, 39 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6774264
Default Alt Text
D20109.diff (701 B)

Event Timeline