Differential D17326 Diff 41682 src/applications/dashboard/controller/PhabricatorDashboardAddPanelController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/controller/PhabricatorDashboardAddPanelController.php
Show All 14 Lines | $dashboard = id(new PhabricatorDashboardQuery()) | ||||
PhabricatorPolicyCapability::CAN_VIEW, | PhabricatorPolicyCapability::CAN_VIEW, | ||||
PhabricatorPolicyCapability::CAN_EDIT, | PhabricatorPolicyCapability::CAN_EDIT, | ||||
)) | )) | ||||
->executeOne(); | ->executeOne(); | ||||
if (!$dashboard) { | if (!$dashboard) { | ||||
return new Aphront404Response(); | return new Aphront404Response(); | ||||
} | } | ||||
$redirect_uri = $this->getApplicationURI('manage/'.$dashboard->getID().'/'); | $redirect_uri = $this->getApplicationURI( | ||||
'arrange/'.$dashboard->getID().'/'); | |||||
$v_panel = $request->getStr('panel'); | $v_panel = $request->getStr('panel'); | ||||
$e_panel = true; | $e_panel = true; | ||||
$errors = array(); | $errors = array(); | ||||
if ($request->isFormPost()) { | if ($request->isFormPost()) { | ||||
if (strlen($v_panel)) { | if (strlen($v_panel)) { | ||||
$panel = id(new PhabricatorDashboardPanelQuery()) | $panel = id(new PhabricatorDashboardPanelQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |