Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15429856
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
Tue, Mar 25, 4:39 AM (1 w, 18 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7716435
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