Differential D16020 Diff 38572 src/applications/diffusion/panel/DiffusionSetPasswordSettingsPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/panel/DiffusionSetPasswordSettingsPanel.php
| <?php | <?php | ||||
| final class DiffusionSetPasswordSettingsPanel extends PhabricatorSettingsPanel { | final class DiffusionSetPasswordSettingsPanel extends PhabricatorSettingsPanel { | ||||
| public function isEditableByAdministrators() { | public function isEditableByAdministrators() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function getPanelKey() { | public function getPanelKey() { | ||||
| return 'vcspassword'; | return 'vcspassword'; | ||||
| } | } | ||||
| public function getPanelName() { | public function getPanelName() { | ||||
| return pht('VCS Password'); | return pht('VCS Password'); | ||||
| } | } | ||||
| public function getPanelGroup() { | public function getPanelGroupKey() { | ||||
| return pht('Authentication'); | return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY; | ||||
| } | } | ||||
| public function isEnabled() { | public function isEnabled() { | ||||
| if ($this->getUser()->getIsMailingList()) { | if ($this->getUser()->getIsMailingList()) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| return PhabricatorEnv::getEnvConfig('diffusion.allow-http-auth'); | return PhabricatorEnv::getEnvConfig('diffusion.allow-http-auth'); | ||||
| ▲ Show 20 Lines • Show All 252 Lines • Show Last 20 Lines | |||||