mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 05:20:56 +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:
parent
d4a2034d2f
commit
a4d874287f
1 changed files with 11 additions and 2 deletions
|
@ -15,8 +15,17 @@ final class PhabricatorEmailPreferencesSettingsPanel
|
||||||
return pht('Email');
|
return pht('Email');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isEditableByAdministrators() {
|
||||||
|
if ($this->getUser()->getIsMailingList()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public function processRequest(AphrontRequest $request) {
|
public function processRequest(AphrontRequest $request) {
|
||||||
$user = $request->getUser();
|
$viewer = $this->getViewer();
|
||||||
|
$user = $this->getUser();
|
||||||
|
|
||||||
$preferences = $user->loadPreferences();
|
$preferences = $user->loadPreferences();
|
||||||
|
|
||||||
|
@ -52,7 +61,7 @@ final class PhabricatorEmailPreferencesSettingsPanel
|
||||||
|
|
||||||
$form = new AphrontFormView();
|
$form = new AphrontFormView();
|
||||||
$form
|
$form
|
||||||
->setUser($user)
|
->setUser($viewer)
|
||||||
->appendRemarkupInstructions(
|
->appendRemarkupInstructions(
|
||||||
pht(
|
pht(
|
||||||
'These settings let you control how Phabricator notifies you about '.
|
'These settings let you control how Phabricator notifies you about '.
|
||||||
|
|
Loading…
Reference in a new issue