1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +01:00

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:
epriestley 2015-06-03 07:11:55 -07:00
parent 02f0c099fa
commit 14e318cb16

View file

@ -14,8 +14,13 @@ final class PhabricatorAccountSettingsPanel extends PhabricatorSettingsPanel {
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 @@ final class PhabricatorAccountSettingsPanel extends PhabricatorSettingsPanel {
$form = new AphrontFormView();
$form
->setUser($user)
->setUser($viewer)
->appendChild(
id(new AphrontFormSelectControl())
->setOptions($translations)