mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 09:12:41 +01:00
Allow administrators to configure "Email Format" settings for lists
Summary: Ref T8387. Mostly completeness, but you might want to choose html vs text mail. Test Plan: {F468203} Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T8387 Differential Revision: https://secure.phabricator.com/D13137
This commit is contained in:
parent
14e318cb16
commit
d4a2034d2f
1 changed files with 11 additions and 2 deletions
|
@ -15,8 +15,17 @@ final class PhabricatorEmailFormatSettingsPanel
|
|||
return pht('Email');
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
$preferences = $user->loadPreferences();
|
||||
|
||||
|
@ -98,7 +107,7 @@ final class PhabricatorEmailFormatSettingsPanel
|
|||
|
||||
$form = new AphrontFormView();
|
||||
$form
|
||||
->setUser($user);
|
||||
->setUser($viewer);
|
||||
|
||||
if (PhabricatorMetaMTAMail::shouldMultiplexAllMail()) {
|
||||
$html_email_control = id(new AphrontFormSelectControl())
|
||||
|
|
Loading…
Reference in a new issue