Allow administrators to edit the "Account" panel for mailing lists and bots
Summary: Ref T8387. Ref T6367. This allows selection of a language, which will be respected in email delievered to the list users. For example, you could have a German list that gets mail in German or something. I don't know that the feature is really useful, it's mostly just for completeness. I also supported it for bots, mostly so their pronouns can be configured. Test Plan: {F468186} Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T6367, T8387 Differential Revision: https://secure.phabricator.com/D13136
This commit is contained in:
parent
02f0c099fa
commit
14e318cb16
|
@ -14,8 +14,13 @@ final class PhabricatorAccountSettingsPanel extends PhabricatorSettingsPanel {
|
||||||
return pht('Account Information');
|
return pht('Account Information');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isEditableByAdministrators() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public function processRequest(AphrontRequest $request) {
|
public function processRequest(AphrontRequest $request) {
|
||||||
$user = $request->getUser();
|
$viewer = $this->getViewer();
|
||||||
|
$user = $this->getUser();
|
||||||
$username = $user->getUsername();
|
$username = $user->getUsername();
|
||||||
|
|
||||||
$errors = array();
|
$errors = array();
|
||||||
|
@ -74,7 +79,7 @@ final class PhabricatorAccountSettingsPanel extends PhabricatorSettingsPanel {
|
||||||
|
|
||||||
$form = new AphrontFormView();
|
$form = new AphrontFormView();
|
||||||
$form
|
$form
|
||||||
->setUser($user)
|
->setUser($viewer)
|
||||||
->appendChild(
|
->appendChild(
|
||||||
id(new AphrontFormSelectControl())
|
id(new AphrontFormSelectControl())
|
||||||
->setOptions($translations)
|
->setOptions($translations)
|
||||||
|
|
Loading…
Reference in a new issue