Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14074972
D20109.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
701 B
Referenced Files
None
Subscribers
None
D20109.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D20109: Convert a manual query against external accounts into a modern Query
Attached
Detach File
Event Timeline
Log In to Comment