Page MenuHomePhabricator

D13136.id.diff
No OneTemporary

D13136.id.diff

diff --git a/src/applications/settings/panel/PhabricatorAccountSettingsPanel.php b/src/applications/settings/panel/PhabricatorAccountSettingsPanel.php
--- a/src/applications/settings/panel/PhabricatorAccountSettingsPanel.php
+++ b/src/applications/settings/panel/PhabricatorAccountSettingsPanel.php
@@ -14,8 +14,13 @@
return pht('Account Information');
}
+ public function isEditableByAdministrators() {
+ return true;
+ }
+
public function processRequest(AphrontRequest $request) {
- $user = $request->getUser();
+ $viewer = $this->getViewer();
+ $user = $this->getUser();
$username = $user->getUsername();
$errors = array();
@@ -74,7 +79,7 @@
$form = new AphrontFormView();
$form
- ->setUser($user)
+ ->setUser($viewer)
->appendChild(
id(new AphrontFormSelectControl())
->setOptions($translations)

File Metadata

Mime Type
text/plain
Expires
May 21 2024, 8:47 PM (8 w, 23 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6294389
Default Alt Text
D13136.id.diff (889 B)

Event Timeline