Differential D16022 Diff 38574 src/applications/settings/controller/PhabricatorSettingsMainController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/controller/PhabricatorSettingsMainController.php
| Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | public function handleRequest(AphrontRequest $request) { | ||||
| return $this->newPage() | return $this->newPage() | ||||
| ->setTitle($title) | ->setTitle($title) | ||||
| ->setCrumbs($crumbs) | ->setCrumbs($crumbs) | ||||
| ->appendChild($view); | ->appendChild($view); | ||||
| } | } | ||||
| private function buildPanels() { | private function buildPanels() { | ||||
| $viewer = $this->getViewer(); | |||||
| $panels = PhabricatorSettingsPanel::getAllDisplayPanels(); | $panels = PhabricatorSettingsPanel::getAllDisplayPanels(); | ||||
| $result = array(); | $result = array(); | ||||
| foreach ($panels as $key => $panel) { | foreach ($panels as $key => $panel) { | ||||
| $panel->setUser($this->user); | $panel | ||||
| ->setViewer($viewer) | |||||
| ->setUser($this->user); | |||||
| if (!$panel->isEnabled()) { | if (!$panel->isEnabled()) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| if (!$this->isSelf()) { | if (!$this->isSelf()) { | ||||
| if (!$panel->isEditableByAdministrators()) { | if (!$panel->isEditableByAdministrators()) { | ||||
| continue; | continue; | ||||
| ▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines | |||||