Page MenuHomePhabricator

D13136.id31725.diff
No OneTemporary

D13136.id31725.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,17 @@
return pht('Account Information');
}
+ public function isEditableByAdministrators() {
+ if ($this->getUser()->getIsMailingList()) {
+ return true;
+ }
+
+ return false;
+ }
+
public function processRequest(AphrontRequest $request) {
- $user = $request->getUser();
+ $viewer = $this->getViewer();
+ $user = $this->getUser();
$username = $user->getUsername();
$errors = array();
@@ -74,7 +83,7 @@
$form = new AphrontFormView();
$form
- ->setUser($user)
+ ->setUser($viewer)
->appendChild(
id(new AphrontFormSelectControl())
->setOptions($translations)

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 29, 8:21 AM (6 d, 18 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7726026
Default Alt Text
D13136.id31725.diff (968 B)

Event Timeline