mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +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:
parent
02f0c099fa
commit
14e318cb16
1 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue