1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +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:
epriestley 2015-06-03 07:23:28 -07:00
parent 14e318cb16
commit d4a2034d2f

View file

@ -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())