Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13199720
D19604.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1023 B
Referenced Files
None
Subscribers
None
D19604.id.diff
View Options
diff --git a/src/applications/people/controller/PhabricatorPeopleDisableController.php b/src/applications/people/controller/PhabricatorPeopleDisableController.php
--- a/src/applications/people/controller/PhabricatorPeopleDisableController.php
+++ b/src/applications/people/controller/PhabricatorPeopleDisableController.php
@@ -39,9 +39,18 @@
}
if ($request->isFormPost()) {
- id(new PhabricatorUserEditor())
+ $xactions = array();
+
+ $xactions[] = id(new PhabricatorUserTransaction())
+ ->setTransactionType(PhabricatorUserDisableTransaction::TRANSACTIONTYPE)
+ ->setNewValue($should_disable);
+
+ id(new PhabricatorUserTransactionEditor())
->setActor($viewer)
- ->disableUser($user, $should_disable);
+ ->setContentSourceFromRequest($request)
+ ->setContinueOnMissingFields(true)
+ ->setContinueOnNoEffect(true)
+ ->applyTransactions($user, $xactions);
return id(new AphrontRedirectResponse())->setURI($done_uri);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
May 14 2024, 5:28 PM (4 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6293186
Default Alt Text
D19604.id.diff (1023 B)
Attached To
Mode
D19604: Replace "Disable User" web UI flow with transactions
Attached
Detach File
Event Timeline
Log In to Comment