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

Allow administrators to configure "Email Settings" settings for lists

Summary:
Fixes T8387. This completes conversion of lists into users.

These settings allow administrators to reduce the amount of mail delivered to lists, ahead of T5791.

Test Plan: {F468206}

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T8387

Differential Revision: https://secure.phabricator.com/D13138
This commit is contained in:
epriestley 2015-06-03 07:27:13 -07:00
parent d4a2034d2f
commit a4d874287f

View file

@ -15,8 +15,17 @@ final class PhabricatorEmailPreferencesSettingsPanel
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();
@ -52,7 +61,7 @@ final class PhabricatorEmailPreferencesSettingsPanel
$form = new AphrontFormView();
$form
->setUser($user)
->setUser($viewer)
->appendRemarkupInstructions(
pht(
'These settings let you control how Phabricator notifies you about '.