Page MenuHomePhabricator

D13137.diff
No OneTemporary

D13137.diff

diff --git a/src/applications/settings/panel/PhabricatorEmailFormatSettingsPanel.php b/src/applications/settings/panel/PhabricatorEmailFormatSettingsPanel.php
--- a/src/applications/settings/panel/PhabricatorEmailFormatSettingsPanel.php
+++ b/src/applications/settings/panel/PhabricatorEmailFormatSettingsPanel.php
@@ -15,8 +15,17 @@
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 @@
$form = new AphrontFormView();
$form
- ->setUser($user);
+ ->setUser($viewer);
if (PhabricatorMetaMTAMail::shouldMultiplexAllMail()) {
$html_email_control = id(new AphrontFormSelectControl())

File Metadata

Mime Type
text/plain
Expires
Jun 12 2024, 6:39 AM (5 w, 6 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6288204
Default Alt Text
D13137.diff (980 B)

Event Timeline